en.javascript.info/1-js/02-first-steps/13-while-for/1-loop-last-value/task.md

142 B

importance: 3


Last loop value

What is the last value alerted by this code? Why?

let i = 3;

while (i) {
  alert( i-- );
}