5- "your compare function does not return "the result is a tie!"


#1

Stuck on #5..im not sure what is wrong- does something look off?

/*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("Computer: " + computerChoice);*/
var compare= function(choice1,choice2) {
if(choice1===choice2) {
return "the result is a tie!";
}
};


#2

You need to use Tie with an upper case "T".


#3

you need to say "The result is a tie!"