6. unexpexted end of input


#1

someone please help.

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

no worries i figured it out ! thanks


#3

I'm having the same problem. How did you solve it? Thanks!


#4

@boardwhiz14855 Missing a } at the end to close the function, if this is not your problem would you mind to refrain from cross posting and instead open an own thread with exercise name/number, error message and your code?