Why its an error


#1

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

`


#2

Hi in your if, else if and else statement you wrote computertChoice instead of comuterChoice


#3

tnx wizmarco

but its still not works:

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


#4

then this line

if (comuterChoice <= 0.33)

you wrote comuterChoice instead of computerChoice