Rock, Paper, or Scissors step 12 understanding

Hello guys,

I´m doing the Full Stack Path. And in that Rock, Paper, or Scissors project I just don´t understand in step 12 the hint:
when create the variable ‘const userChoice = getUserChoice(‘scissors’);’
Why choose the ‘scissors’ parameter? And the others parameters?

Thanks in advance …

The program could use extending where we prompt the user for input instead. No we hard code the user choice into our program, that isn’t a fun RPS to play.

certainly a good challenge to add this feature

1 Like

Is the extending that you say like a ‘input’ in Python ?

yes, but in JavaScript this might be slightly more complicated, unless you can use prompt()

1 Like