r/javascript • • Feb 05 '11

Are Semicolons Necessary in JavaScript?

http://aresemicolonsnecessaryinjavascript.com/
0 Upvotes

66 comments sorted by

View all comments

17

u/bart2019 Feb 05 '11

That's 24 bytes right there. Stamp semicolons everywhere and run it through a minifier:

var a=1;var b=2;var c=3;

You're doing it wrong. Minified that should be

var a=1,b=2,c=3;