0
for loop in ES6
I did not know you can start a for loop with âletâ variable. I thought it can only be a âvarâ.
3 RĂ©ponses
+ 1
If you use `let`, the variable will only be recognised within the loop. But if you use `var` the variable will be recognised within and outside loop scope.
+ 1
i thought âletâ was boolean type.
0
theres key to create a variable
var , let , const