#4 syntax problem


#1

Just fix my syntax

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


#2

Hi the else statement doesn't take any condtion

if (condition) {

}
else if (condition) {

}
else {

}

#3

so where do i put my scissors?


#4

Hi so you have

1.If computerChoice is between 0 and 0.33, make computerChoice equal to "rock".
and you made it

if (computerChoice < .33) 
{
    computerChoice="rock";
}

you don't need of the console.log()

2. If computerChoice is between 0.34 and 0.66, make computerChoice equal to "paper". you also made it

else if (computerChoice <= .66) 
{
   computerChoice= "paper";
}

3.If computerChoice is between 0.67 and 1, make computerChoice equal to "scissors".
that will be the else statement if computerChoice isn't between 0 and 0.33 and 0.34 and 0.66 it will be scissor

so

the scissors
will be in the else statement