...

/

let, const, and var

let, const, and var

the use case of let, const and var; avoiding errors, such as the temporal dead zone, and using a linter

Rule 1: use let for variables, and const for constants whenever possible. Use var ...