3 ms·
That's a part of JS Garden I don't agree with. Leaving semi-colons only changes behaviour if your code is wrong in the first place...
by ricardobeat 15y ago
That's a part of JS Garden I don't agree with. Leaving semi-colons only changes behaviour if your code is wrong in the first place...
- damncabbage 15y agoHow 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()