// Not sure if i made a rookie mistake or something else, but i have had a lot of trouble trying to find out what the problem is. It says SyntaxError: Unexpected token )

```
const getUserChoice = userInput => {
userInput = userInput.toLowerCase();
if (userInput === 'rock'|| userInput === 'paper' || userInput === 'scissors') {
return userInput;
}
else {
console.log('Input is invalid. try again.');
}
}
function getComputerChoice() {
switch (Math.floor(Math.random() * 3)) {
case 0:
return 'rock';
case 1:
return 'paper';
case 2:
return 'scissors';
}
}
function determineWinner(userChoice,computerChoice) {
if(userChoice === computerChoice) {
return 'The game is a tie!';
}
if(userChoice === 'rock') {
if(computerChoice === 'paper') {
return 'The computer wins!';
}
else {
return 'You win!';
}
}
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!';
}
}
```