+ 1

Let me know if i understand correctly, var is used to declare global variables and let/const to local?

25th Aug 2017, 7:36 PM
Arthur Regis
Arthur Regis - avatar
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/
25th Aug 2017, 9:29 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Very helpfull man, thank you!
25th Aug 2017, 9:37 PM
Arthur Regis
Arthur Regis - avatar