Rock, Paper, or Scissors project. How to get rid of undefined from my outcome?

Link: https://www.codecademy.com/paths/full-stack-engineer-career-path/tracks/fscp-javascript-syntax-part-i/modules/fecp-learn-javascript-syntax-functions/projects/rock-paper-scissors-javascript

Project: Rock, Paper, or Scissors

The outcome of my code works good but it shows undefined in the end. How to fix it?

const getUserChoice = function(userInput){
  userInput = userInput.toLowerCase();
  if (userInput === 'rock' || userInput === 'paper' || userInput === 'scissors' ) {
  return userInput;
} else {
  console.log('Error!');
}
}


const getComputerChoice = function(){
  const comrandomguess = Math.floor(Math.random()*3)
  if (comrandomguess === 0){
    return 'rock'
  } else if (comrandomguess === 1){
    return 'paper'
  } else if (comrandomguess ===2){
    return 'scissors'
  }
}

const determineWinner = function(userChoice, computerChoice){
  if (userChoice === computerChoice){
    return 'tie'
  }
  if (userChoice === 'rock'){
    if(computerChoice === 'paper'){
      return 'computer wins'
    } else {
      return 'user wins'}
  }
  if (userChoice === 'scissors'){
    if(computerChoice === 'rock'){
      return 'computer wins'
    } else {
      return 'user wins'}
  }
  if (userChoice === 'paper'){
    if(computerChoice === 'scissors'){
      return 'computer wins'
    } else {
      return 'user wins'}
  }
}


const playGame = function(){
  const userChoice = getUserChoice('paper');
  const computerChoice = getComputerChoice();
  console.log('You threw: ' + userChoice);
  console.log('The computer threw:' + computerChoice);
  console.log(determineWinner(userChoice, computerChoice));
}

console.log(playGame());

If you log a console.log

console.log(console.log('You threw: ' + userChoice))

the logged console returns ‘undefined’.
Instead of logging the string within your playGame function, return the string.

Thank you for the help. Problem solved