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’));