r/javascript • • Apr 01 '18

Google publishes a JavaScript style guide. Here are some key lessons.

https://medium.freecodecamp.org/google-publishes-a-javascript-style-guide-here-are-some-key-lessons-1810b8ad050b
714 Upvotes

317 comments sorted by

View all comments

293

u/kevinkace Apr 01 '18

Semicolons ARE required

👍

29

u/kobbled Apr 01 '18 edited Apr 01 '18

thank god. JS semicolon inference leads to so many bugs.

5

u/JohnMcPineapple Apr 01 '18 edited Oct 08 '24

...

3

u/nayocum Apr 01 '18

If you use an IIFE it can cause issues if your last line didn't have a semicolon as well

→ More replies (4)