Rock Paper Scissors

So what am I doing wrong?

image

I think you don’t need to add userInput = userInput.toLowerCase( ) before calling the function. How could you write that outside the function after defined it. That’s why you’re getting error.
userInput is the parameter of getUserChoice function. So, can’t initialize anything to userInput outside of that function and even you don’t need to initialize that again. You’ve already initialized it in between the function.

Fixed it like you said.

But for some reason I’m still getting the weird teal color in the toLowercase() and the console.log().

any idea why?

image

I was having the same issue. I put parenthesis back around userInput at the very top and that seemed to work. I still can’t get my returns to come back correctly however. Still on step 4. Lemme know how you’re doing.