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 ;
console.log(‘invalid, please try again’);

You are missing || between 'paper' and userInput

1 Like

oh right! thank you for your help!!

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.