It says the syntax has a problem


var compare = function (userChoice,computerChoice){
if (userChoice === computerChoice) {
return “The result is a tie!”;
else if(userChoice === computerChoice “rock”) {
if (computerChoice === “scissors”) {
return “Rock Wins”;
else {
return “Paper Wins”;


its a bit confusing 
did i miss a code or mispelled?
 may i please have a screenshot on how to do it


This line:

else if(userChoice === computerChoice "rock") 

seems to have some syntax problems. What is computerChoice doing there? You should check if the userChoice is rock