It works the first time when I pass "q" into my input, but after that, it no longer works. Why? Appreciate any kind advice.
alert("Welcome to your To-Do List!")
let userInput = prompt("What would you like to do?");
let toDo = [];
while (userInput != "q") {
let userInput = prompt("What would you like to do?");
console.log(userInput);
}