0
what is difference between var & let ?
2 odpowiedzi
+ 7
here is an excellent explanation
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let
+ 2
This is a scope problem. Var is scoped to the nearest function while let is scoped to the nearest block (ie a if statement)