"let" is the new "var"....
Or so I've heard. I was both pleased and slightly frustrated with learning ES6. On the one hand, I love that'll make coding Javascript simpler. On the other hand, it'll take a little getting used to learning new syntax after getting so used to typing "var" for everything.
Oh well, shouldn't take long. By the way, cheers to ES6 template strings! Soooo much better.
Top comments (1)
let is not var in for loop, for each loop let variable has own scope, but var is shared.