2 ms·
JS's scope is really weird for (let i = 0; i != 3; i += 1) { console.log(i); // i refers to the variable defined below const i = 0; }
by edflsafoiewq 8y ago
JS's scope is really weird
for (let i = 0; i != 3; i += 1) {
console.log(i); // i refers to the variable defined below
const i = 0;
}