DEV Community

Discussion on: When to use the different variable and function declarations and what are the best practices?

Collapse
 
jefferyhus profile image
El Housseine Jaafari

Good article and well organized. As of var & let I tend to use var when I want a variable to be visible in the whole application or scope and leave let for loops or variables inside functions. And for functions I only tend to use arrow/fat function whenever I want to use the global/local this.