You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since top level definitions should be immutable we should be blocking users from creating variables using var or let at the top level. Probably just throwing a clear error is the solution.
The example which brought this up is:
let str = '';
for (let i = 0; i < 9; i++) {
str = str + i;
}
console.log(str);
The text was updated successfully, but these errors were encountered:
Since top level definitions should be immutable we should be blocking users from creating variables using
var
orlet
at the top level. Probably just throwing a clear error is the solution.The example which brought this up is:
The text was updated successfully, but these errors were encountered: