Rock paper scissor "else" statement is wrong?


#1

var userChoice = prompt ("do you choose rock, paper or scissors?");
var computerChoice = Math.random();

if (computerChoice <= 0.33);
{
console.log("rock");
}
else if (computerChoice 0.33 >= 0.67)
{
console.log("paper");
}
else
{
console.log("scissors");
}

What is wrong?


#2

computerChoice "0.33" >= 0.67
                  ^

You'll need to get rid of the 0.33. Right now the parameter won't work like that because the "computerChoice" and "0.33" aren't linked in any way so the console has no idea what you're saying right now.