else if (choice1 === "paper") {if (choice2 === "rock") {return "scissors wins"}// and here you forgot to close ( } ) one for else if and second for the function.After closing the function you have to call the function.