6/9 Help please!


#1

Could u help me with my code.
Keeps saying syntax error

var compare=function(choice1,choice2){
if (choice1===choice2){
return "The result is a tie!";
};
else if (choice1==="rock"){
if (choice2==="scissors") {
return "rock wins";
};
else {
return "paper wins";
};
};
};


#2

When closing your if and elseif elements with curly brackets don't add a semi colon after