Code being displayed in the terminal. - Rock Paper Scissor Game

I have completed all the steps in the in the project however the terminal displays all the code that it goes through to decide the winner, yet I haven’t told it to using console.log( ).

Am I doing something wrong??

Any help will be massively appreciated, Thanks

// You wrote:
const playGame = () =>{
 const userChoice = getUserChoice('scissors');
 const computerChoice = getComputerChoice();
 console.log('You threw: ' + getUserChoice );
 console.log('Computer threw: '+ getComputerChoice);
 console.log(determineWinner(userChoice, computerChoice));
// Change to:
console.log('You threw: ' + userChoice );
console.log('Computer threw: '+ computerChoice);

Thanks for the help, appreciate it!!

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.