by jephir · 11y ago · 0 comments
Leaving out semicolons actually makes the intent more clear. People run into problems with semicolon insertion when they try to create an unnamed expression, i.e:
["joe", "bob", "ann"].forEach(call);
If you use a no-semicolon style, though, you must name all your expressions, which makes your intent more clear: var employees = ["joe", "bob", "ann"]
employees.forEach(call)> If you use a no-semicolon style, though, you must name all your expressions.
Thanks, I guess I missed that point.