239 B
239 B
importance: 5
Replace "for" with "while"
Rewrite the code changing the for
loop to while
without altering it's behavior (the output should stay same).
for (let i = 0; i < 3; i++) {
alert( `number ${i}!` );
}