I think I misunderstood the last question, 28. While loop with input.
Exercise:
this is what I came up with -
“<script>
var usernumber = prompt(“Give me a number”);
var outputnumber = 0
while (outputnumber < usernumber) {
console.log(outputnumber);
outputnumber = outputnumber + 1;
alert(“are you enjoying this yet, only “+(usernumber-outputnumber)+” left to go”)
}
</script>”
I found this amusing anyway, especially when someone enters a large number