2 ms·
there's no block scope. Only function scope. There is global scope as well, and it's (unfortunately in most cases) the default.
by ams6110 14y ago
there's no block scope. Only function scope.
There is global scope as well, and it's (unfortunately in most cases) the default.
- MatthewPhillips 14y agoAlso there is block scope. let { ... }
- evilduck 14y agoAFAIK, let is a Mozilla only feature.