Javascript – How do I pass the value of a prompt in a function as an argument for the same function when its called?
I have a function playRound() that takes two parameters, playerSelection via prompt and computerSelection, and compares them. //basic rock paper scissors a second function game() calls playRound(playerSelection, computerSelection) to run the comparison for one execution. I want the value of…