Project not workiing

const getUserChoice= (userInput) =>{

userInput = userInput.toLowerCase();

if( userInput === ‘rock’ || userInput === ‘paper’ || userInput === ‘scissors’){

return userInput

} else {

return 'Error!'

}

}

const getComputerChoice = () =>{

const randomNumber=Math.floor(Math.random() * 2);

switch(randomNumber){

case 0:

return 'rock';

case 1:

return 'paper';

case 2:

return 'scissors';

}

}

const determineWinner=(userChoice,computerChoice) =>{

if( userChoice === computerChoice){

return 'The game is a tie'

}

if ( userChoice === ‘rock’){

if( computerChoice === 'paper'){

  return 'Better Luck Next Time'

} else {

  return 'You made It. You won!'

}

if (userChoice === 'paper'){

  if (computerChoice === 'scissors'){

    return 'Better Luck Next Time!'

  } else {

    return 'You Made it  You Won!'

  }

  if (userChoice === 'scissors'){

    if(computerChoice === 'rock'){

      return 'Better Luck Next Time'

    } else {

      return 'You Made it You Won!'

    }

  }

}

}

}

What isn’t working? Are there any errors being created? Also, 2 can never be reached with this code

as Math.random creates a number that is at least 0, and less than 1. So the largest number it can create is 0.999(more 9s, but you get the idea). When you multiply this by two you get and number just less than 2, and then when you floor it, you get 1. Here is some reading on that function, and how it works.