I want the loop to count down starting with the user's input number all the way down to 0. For example, if the user puts in 10, it will count down from 10 to 0. I think I'm close but need a little help.
var userNum = Number(window.prompt("Enter number of your choice starting from 1"));
var i;
for (i = 0; i < userNum; i--) {
window.console.log(userNum[i]);
}