6 what did i do wrong


#1

if (computerChoice < 0.34) {
computerChoice = "rock";
} else if(computerChoice <= 0.67) {
computerChoice = "paper";
} else {
computerChoice = "scissors";
} 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";
}

};


#2

you are missing a }

else if (Choice1 === "rock) { ///opens else if
    if (choice2 === "scissors") { ///opens if
        return "rock wins";
    } ///closes if
    else { ///opens else
        return "paper wins";
    } ///closes else
} ///this one is missing and it is what closes your else if
}; ///closes the function

Good luck