Functions: Rock, paper or scissors project

Hello, can someone assist with help. I have encounter an issue with this code. I have not been able to figure out what is wrong with it. Calling the second function “const getComputerChoice” has not worked. I coded the function even exactly as the instructor shows on the video.

I appreciate your help. Thank you

Hello! Check how many closing parentheses ) you have on this line:

console.log(Math.floor(Math.random() * 3);

Currently there are two. But how many opening parentheses ( you you have? Are they equal?
I hope this helps!

Finally saw the missing ) parenthesis. I never counted them before, it does help. Thank you.

1 Like