I know there are a lot of quesitons on this but


#1

I'm still not getting what I am doing wrong. I have looked at 4-5 different examples and mine looks great, but still getting a Syntax Error: Unexpected Identifier. I hate to waste time if my exact question has already been answered but I sure couldn't find it!
Thanks to anyone who can help!
Here is my code

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";
            
            }
    }    
            
    else if (choice1 === "paper"){
        
        if choice2 === "rock"){
            return "paper wins";
            }
            else {
                return "scissors wins";
                }
             }        
    };

#2

Not sure why it imported that way but hopefully you all get the point!


#3

your missing a ( here.


#4

Wow thanks @haxor789, that's a bit embarrassing. I guess I just had tunnel vision. Thanks!