2 ms·
How is the following code "wrong"? var foo = function() { } // parse error, semicolon expected test() For completeness' sake, this example works: var
by damncabbage 15y ago
How is the following code "wrong"?
var foo = function() {
} // parse error, semicolon expected
test()
For completeness' sake, this example works:
var foo = function() {
}; // no error, parser continues
test()