2 ms·
let also does some magic in for-loops, creating a new variable for each iteration, basically creating a closure. It also throws and error if it's used before i
by z3t4 7y ago
let also does some magic in for-loops, creating a new variable for each iteration, basically creating a closure.
It also throws and error if it's used before it's declared.
Let basically fix some minor issues that hard-bitten JavaScript developers have learned to avoid.