Need help with the Rock, Paper, Scissors exercise

const getUserChoice = userInput =>

{userInput = userInput.toLowerCase();

if ( userInpuut === ‘rock’ || userInput === ‘paper’ || userInput === ‘scissors’ ) {

return userInput

} else {

console.log(‘Invalid weapon’);




When i try to log getUserChoice(‘paper’) to the console it flashes an error and tells me that :
"ReferenceError: userInpuut is not defined at getUserChoice"

I watched the video and my code matches what he types so im not sure what i am doing wrong

you made a typo in your variable name here:

if ( userInpuut === 'rock'
1 Like

thanks! Can’t believe i missed that lol