Rock, Paper, or Scissors

Hi, I am in the middle of the project. I cannot figure out what is wrong. Could you please find why?
thank you in advance.

const getUserChoice = userInput =>{
userInput = userInput.toLowerCase();
if(userInput === ‘rock’ || userInput === ‘scissors’|| userInput === ‘paper’ userInput === ‘error’){
return userInput ;
}else{
console.log(‘invalid, please try again’);
}
}
console.log(getUserChoice(‘paper’));

You are missing || between 'paper' and userInput

1 Like

oh right! thank you for your help!!