Next Steps " inappropriate choice like 'dog' " problem


#1



i added an else statement in the compare function that simply returns "Wrong input" as advised in other topics. Please help!

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


i get this message "ReferenceError: Choice1 is not defined"


var userChoice = prompt("Do you choose rock, paper or scissors?");

var computerChoice = Math.random();
if (computerChoice < 0.34) {
	computerChoice = "rock";
} else if(computerChoice <= 0.67) {
	computerChoice = "paper";
} else {
	computerChoice = "scissors";
} 
console.log("User: " + userChoice);
console.log("Computer: " + computerChoice);
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"
        }
    }
else if (choice1 === "scissors"){
    if (choice2 === "rock"){
        return "rock wins";
    }

}
else{
        return ("Wrong Input");
}
}
compare(userChoice,computerChoice)


#2

Missing a semicolon ';'.


#3

Everyone likes their own style of coding, but your code starts to confuse me a little when you start writing your conditionals.
I do see a couple of things that may or may not be wrong..

maybe has something to with adding that 'wrong input' bit. codecademy gets touchy sometimes with letting you add extra things..

also, I had 'return scissors wins' under my 'else {'