[Solved] Javascript Rock Paper Scissors Game Syntax Issue [closed]


function showResult()

Isn’t closed correctly its missing a }

//EDITED

I noticed that you never set the userChoice to a new value so i changed that for you.

The other person his solution was pretty cool using regex but i think that’s not really needed in my opinion.

the way he changed your syntax was pretty cool and i think you should check that out some more.

here is the fiddle
https://jsfiddle.net/L03spu70/8/

I didn’t add the syntax changes but it works now

6

solved Javascript Rock Paper Scissors Game Syntax Issue [closed]