en.javascript.info/1-js/02-first-steps/12-while-for/5-replace-for-while/task.md
Ian Witham 215233b12f Grammar fix
Should be "its", not "it's" (which means "it is")
2017-07-09 15:29:28 +12:00

238 B

importance: 5


Replace "for" with "while"

Rewrite the code changing the for loop to while without altering its behavior (the output should stay same).

for (let i = 0; i < 3; i++) {
  alert( `number ${i}!` );
}