My console.log isnt displaying anything at all in the rock paper scissors project

const playGame = () => {
const userChoice = getUserChoice(‘rock’);
const computerChoice = getComputerChoice();
console.log('you threw ’ + userChoice)
console.log('computer throws ’ + computerChoice)
console.log(determineWinner(userChoice,computerChoice))
console.log(playGame())
};

why dosnt this show anything in my console

i dont even get an error or anything .

absaloutly nothing pops up in my console

anything outside of this code block will display when i use console.log() however anything in this specid block dosnt display

That line needs to be outside of the function body.

    }
    console.log(playGame())

The output of that line will be undefined. The function is doing the logging so we only need to call it…

    playGame()
2 Likes