What if choice 1 ist paper?


#1


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

SyntaxError: expected expression, got keyword 'else'

var compare = function (choise1, choise2){
    if (choise1 === choise2) {
        return "The result is a tie!";
    }
    else if (choise1 === "rock"){
         if (choice2  ==="sciccors") {
            return"rock wins";
    }
   }
    else {
        return "paper wins";
    }
   if (choice1 === "paper");{
     else if (choice2 === "rock"){
            return "paperwins";
        }
    
        else {
            return "scissors wins";
        }
}
    
};


#2

#3

duplicate of following topic:

given it concerns the same question/error, discussion should be in a single topic