DEV Community

Discussion on: Is`let` the new `var` in Javascript?

Collapse
 
amitkhonde profile image
Amit Khonde

Completely agree here. It highly depends on the team and the style of writing code. But I also believe that using var (that this variable is used throughout the function) or let (that this variable is used only in the current block) carries a special meaning. And you are correct. Concepts of var are not easy to digest.