JSFiddle - React, Tailwind, and code Playground
by Alex Fogarty
JavaScript
var scoops = 10;
while (scoops > 0) {
alert("Another scoop!");
scoops = scoops - 1;
//start if - else if statement here
if(scoops == 9){
alert("I have " + scoops + " scoops");
}
else if (scoops > 5){
alert("I've got more than half");
}
};
if (scoops === 0){
alert("YOU ARE OUT!");
};