What is wrong?


#1


https://www.codecademy.com/courses/javascript-beginner-en-Bthev-mskY8/1/2?curriculum_id=506324b3a7dffd00020bf661#

"Unexpected end of input" This is EXACTLY what is in the hint section and it's still not working.

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

Hi just need to add one } for closing the compare function at the end.


#3

Thank you! that helped alot!