const getUserChoice = userInput =>
{userInput = userInput.toLowerCase();
if ( userInpuut === ‘rock’ || userInput === ‘paper’ || userInput === ‘scissors’ ) {
return userInput
} else {
console.log(‘Invalid weapon’);
}
}
console.log(getUserChoice(‘paper’))
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