JC-Dsc
KPCKevin Powell - Community
•Created by JC-Dsc on 4/24/2023 in #front-end
Parameter not defined
Hey guys,i hope you're all good and having a good day.
I'm doing a JavaScript course and i can't really figure this out. I'm trying to display under the buttons another 2 paragraphs,one with the result which it does display when you play the game, and another one that displays the hand of the player and the hand of the computer.
The problem is with the "hands" paragraph, on the console it keeps saying "Uncaught ReferenceError: playerMove is not defined ". But "playerMove" is a parameter and i don't know what to do.
I tried researching for similar problems but couldn't find an answer,declaring the parameter,reviewed the code and nothing.
Here's the code pen https://codepen.io/JC-Dsc/pen/BaqWdqd?editors=1111
And thanks for the help
16 replies