Rock, paper scissors project

Hello,
I am stuck on step 3 of the project. I have written this code:

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

And I keep getting this error:

/home/ccuser/workspace/javascript_101_Unit_3/Unit_3/rockPaperScissors.js:9
});
^
SyntaxError: Unexpected token )
at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)

Can someone help me understand what I need to fix?

Thank you,

I think the if-statement condition has a mistake:

if (userInput === 'rock' || userInput === 'paper' || 'scissor') {

should be

if (userInput === 'rock' || userInput === 'paper' || userInput === 'scissor') {

because just having
|| 'scissor'
would work the same as always doing
|| true
(since non-empty strings work the same way as true (they’re truthy) when you’re doing an if-statement’s condition.

I don’t see a line that has }); in the code above.
But the } needed to finish the function isn’t written in the code above.

Thank you so much for your help.