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
11
u/allenthar Apr 01 '18
Okay.
var a = 5 var b = 10 ;[a, b] = [b, a] console.log(a, b)
I have literally never had this situation come up while coding JS, and I’ve been doing it full time for a few years now.
Regardless, Prettier handles automatically removing or adding semicolons to my code. So it’s literally just a linter setting at this point.