5/9 Syntax error problems


#1

I keep getting the same old syntax error and I can't tell what it is, someone please help

/*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, choice 2)
{
if (choice1 === choice2)
return "The result is a tie!";
}
};
console.log(compare(userChoice, computerChoice));


#2

In the parameter section is there a space between choice and 2? If yes you should better delete it or this will be interpreted as 2 value without connecting operators.


#3

get rid of the }; then it will work


#4

Where? As far as I can see the } are placed correct.