Rock,paper,scissors project

So Im needing some help on what im doing wrong on this project. I run the code on step 11 and for some reason im only getting undefined. Can some one please give me a suggestion on what im doing wrong.

here is my code so far:

 // human choice
let getUserChoice = userInput => {
userInput = userInput.toLowerCase();
if(userInput === "rock" || userInput === "paper" || userInput === "scissors") {
  return getUserChoice;
}else {
  console.log("Error!");
}
}
// computer choice
let getComputerChoice = () =>{
 getComputerChoice = Math.floor(Math.random() * 1);
}
switch(getComputerChoice){
  case 0:
  return 'rock';
  break;
  case 1:
  return 'paper';
  break;
  case 2:
  return 'scissors';
  break;
}
// determine a winner with code

let determineWinner =(getUserChoice, getComputerChoice);
if (getUserChoice === getComputerChoice){
  console.log('Tie')
} if(getUserChoice === 'rock'){
  if(getComputerChoice === 'paper'){
    return 'the computer won' ;
  }else{
    return 'you won';
  }
}
if(getUserChoice === 'paper'){
  if(getComputerChoice === 'scissors'){
    return 'the computer won';
  }else{
    return 'you won';
  }
}
if(getUserChoice === 'scissors'){
  if(getComputerChoice === 'rock'){
    return 'the computer won';
  }else{
return 'you won';
  }
}
console.log(determineWinner('paper', 'paper'));

You need to declare the variable getComputerChoice and return it. Or just return the value:

return Math.floor(Math.random() * 1)

It doesn’t even need a function scope. You could just write:

let getComputerChoice = Math.floor(Math.random() * 1);

Your getComputerChoice variable is always 0 because Math.random() returns a value between 0 and one and you just multiply it with 1 (no change) and apply floor on it.
Your switch cases would better be inside a function scope though.

What do you expect determineWinner to be?

PS: Please format your code.