r/javascript • u/bornforcode • 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
67
u/[deleted] Apr 01 '18
"Being same as C++" should be quite low in priority for a JavaScript style guide.
One reason why single quotes is no shift. It's faster to type, and who cares what it is, anyway, as long as it's consistent.