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

Show parent comments

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

-5

u/kobbled Apr 01 '18

return statements are the biggest offender.

8

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

...

3

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

whoops, looks like I misunderstood that feature. My bad.