SyntaxError: Unexpected token { in pat 2


#1

Not really sure where I went wrong...

var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
console.log(computerChoice);
if (computerChoice <= .33) {
computerChoice == "rock";
}
else if (compuerChoice <=.66) {
computerChoice == "paper";
}
else (computerChoice){
computerChoice == "sciccors";
}


#2

There should not be any condition after else.


#3

var userChoice = prompt("Do you choose rock, paper or scissors?")
var computerChoice = Math.random();
console.log (computerChoice);
if (computerChoice <= 0.33) {
computerChoice == "rock";
}
if else (computerChoice <= 0.66){
computerChoice == "paper";
}
else {
computerChoice == "scissors";
}

syntax error =-=. pls help me


#4

Oh and don't use ==. == and === means that you compare the values on the left and right of this operator, but what you want to do here is to assign the value on the right to the variable on the left and therefore you'd use the = operator.