+ 1
So where can "let" be used instead of "var" in JS?
4 ответов
+ 3
Check this out : https://www.sololearn.com/learn/JavaScript/2969/
+ 2
Everywhere. You can use let everywhere in your code. Use const only if confirmed about that variable will not be changed in entire scope.
+ 2
Just to be sure you should read about variable hoisting
+ 1
Thanks guys