6. unexpexted end of input


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";



no worries i figured it out ! thanks


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


@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?