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

-4

u/[deleted] Apr 02 '18

[removed] — view removed comment

4

u/a_tocken Apr 02 '18

The braces represent a GROUP of statements. The meaning of "semicolon after every statement" is after every statement that doesn't have an ending delimiter. A control block does have an ending delimiter, so there is no ambiguity.

-2

u/[deleted] Apr 02 '18 edited Apr 02 '18

[removed] — view removed comment

7

u/a_tocken Apr 02 '18

Is your problem with the rule, the wording of the rule, or your inability to understand the rule?