Sign up FAST! Login

The difference between let and var in JavaScript

Stashed in: JavaScript, Software!

To save this post, select a stash from drop-down menu or type in a new one:

ECMAscript 6 now has the let keyword, which is different from the var keyword in one important way. Did I mention that scoping is the weakest part of my -- and I think every other JavaScript coder's -- game?

You May Also Like: