I've been trying to fix this loop, but apparently it doesn't recognize when the input is right. Am I using the right kind of loop here?
var userChoice = prompt("Do you choose rock, paper or scissors?")
if (userChoice !== "rock", "paper", "scissors") {
do {
prompt("Invalid answer. Please choose rock, paper or scissors.");
} while (userChoice !== "rock", "paper", "scissors");
} else {