What is wrong with my code 6/9


#1

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

compare("rock","rock")
else if (choice1 === "rock") {

if (choice2 === "scissors") {
    return "rock wins";
}
else {
    return "paper wins";
}

#3

why to you rip your if/else if/else statement apart by adding this function call. Also missing a }; at the very end.