Podczas gdy pętla odliczała JavaScript

var countdown = 10;
while (countdown > 0){
    countdown--;
    console.log(countdown);
}
console.log("Blastoff!");
 Run code snippetHide results
Clean Caterpillar