Sedangkan loop countdown javascript

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