I have completed the task (code below) I am unsure of what to do next to make the game fully playable? Any tips greatly appreciated. Apologies if this sounds obvious but I am just beginning my coding journey. Thanks.

const getUserChoice = userInput => {

userInput = userInput.toLowerCase();

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

return userInput;

} else {

console.log(‘Sorry that is not a vaild choice!’);

}

};

function getComputerChoice() {

Math.floor(Math.random() * 3);

switch (getComputerChoice) {

case 0:

return ‘rock’;

case 1:

return ‘paper’;

case 2:

return ‘scissors’;

}

}

function determineWinner (userChoice, computerChoice) {

if (userChoice === computerChoice) {

return ‘Game is a tie!’;

}

if (userChoice === ‘rock’) {

if (computerChoice === ‘scissors’) {

return ‘You win!’;

} else {

return ‘The computer wins!’;

}

}

if (userChoice === ‘paper’) {

if (computerChoice === ‘scissors’) {

return ‘The computer wins!’;

} else {

return ‘You win!’;

}

}

if (userChoice === ‘scissors’) {

if (computerChoice === ‘rock’) {

return ‘The computer wins!’

} else {

return ‘You win!’;

}

}

}

const playGame = () => {

const userChoice =

getUserChoice(‘rock’);

const computerChoice =

getComputerChoice();

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

console.log(determineWinner(userChoice, computerChoice));

}

playGame();