+ 1
Let me know if i understand correctly, var is used to declare global variables and let/const to local?
2 Réponses
+ 3
These articles should help with your understanding of the differences of scoping var, let, and const:
http://wesbos.com/javascript-scoping/
http://wesbos.com/let-vs-const/
+ 1
Very helpfull man, thank you!