3 ms·
Fun(?) fact: it's not technically true that const can't be used in for loops: for (const i = 0; i > 0; ) { console.log('this is stupid'); }
by wging 2y ago
Fun(?) fact: it's not technically true that const can't be used in for loops:
for (const i = 0; i > 0; ) {
console.log('this is stupid');
}
let ran = false;
for (const i = 0; !ran; ran = true) {
console.log('this is also stupid');
}