Can somebody help me and find my error?

const getuserchoice = (userinput) => {
userinput = ‘rock’;
userinput = userinput.toLowerCase();
if (userinput === ‘rock’ || userinput === ‘paper’ || userinput === ‘scissors’){
return userinput;
console.log(‘Error! Undefined userinput please try again!’)
} };
const getComputerChoice = () => {
const randomNumber = Math.floor(Math.random() *3);
switch (randomNumber) {
case 0:
return ‘rock’;
case 1:
case 2:
return ‘scissors’;
const Winner = (userChoice, computerchoice) =>
if (userChoice === computerChoice) {
return ‘This game is a tie!’
if (userChoice === ‘rock’){
if (computerchoice === ‘paper’){
return ‘Sorry Computer Won’;

and here is the what the syntax error is
SyntaxError: Unexpected token )
at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)

nvm found it fillling up spaaaaaaaaaaace

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.