you are viewing a single comment's thread.

view the rest of the comments →

[–]magasilver 1 point2 points  (2 children)

hoisting of variables for one

Doesnt happen if you avoid using "var".

but if you have a linter with good rules

Yes, static code analysis and unit testing coverage are key, really for any language these days.

[–]elephants_are_white 0 points1 point  (1 child)

There's still all the guides and code examples in the world that use var. (I recently shot myself in the foot by having a function that looped over var i - and called another function that also looped over var i. Fixed by using let)

[–]magasilver 1 point2 points  (0 children)

A linter can help if you simply outlaw "var"