Issue with the code is that it should only progress if the user inputs "rock", "paper" or "scissors". However, after re-entering any input the second time, it still moves on despite passing the condition in the while loop. For instance, entering "asdf" prompts for re-entry, but then if "asdf" is entered again, it exits the loop and logs out "asdf". The goal is to continue prompting the user until they enter one of the specified choices
let userChoice = prompt("Enter rock, paper, or scissors", "rock").toLowerCase();
while (userChoice !== "rock" && userChoice !== "paper" && userChoice !== "scissors") {
userChoice = prompt("Please enter again");
}
console.log(userChoice);