Javasciprt arrow function error

something is preventing this function from work, ive tryed looking at others do it but something isnt budging.

It is very difficult to work with screenshots of code, but I suspect that

|| ... }

your ... in here should actually have a comparison.

1 Like

I got this actaully, what else am i missing?

const getUserChoice = userInput => {
userInput = userInput.toLowerCase();
if (userInput === ‘rock’ || userInput === ‘paper’ || userInput === ‘scissors’) {
return userInput;
} else {
console.log(‘Error!’);
}
};

console.log(getUseChoice(‘Paper’))

I got this actaully, what else am i missing?

const getUserChoice = userInput => {
userInput = userInput.toLowerCase();
if (userInput === ‘rock’ || userInput === ‘paper’ || userInput === ‘scissors’) {
return userInput;
} else {
console.log(‘Error!’);
}
};

console.log(getUseChoice(‘Paper’))

it seems the typo was the mistake, but where does the backtick need to be used in my function