Diferença entre LET e VAR em JavaScript
//let
1. It is block-scoped.
2. It does not allow to redeclare variables.
3. Hoisting does not occur in let.
// var
1. It is function scoped.
2. It allows to redeclare variables.
3. Hoisting occurs in var.
Tiny Coders