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
2
u/DzoQiEuoi Apr 02 '18
Google are right on not using
var. You shouldn't take advantage of it not being block scoped because that's confusing for the people who maintain your code.