Need help with 4/9- eyes are going cross, can't debug


#1

Below is my code and I get the following error= SyntaxError: missing before statement

I have compared this with many other's codes in this forum and all looks good, but alas. Please help! Thanks

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


#2

there should not be a condition after the 'else' keyword. simply delete: '(computerChoice >= 0.67 && computerChoice<= 1)' and your code should work fine!


#3

perfect, thank you so much!