What is wrong with my code?!? Computer Choice part 2


#1



I have no idea what to do!


Replace this line with your code. 
if (computerChoice<= 0.33){
    computerChoice = "rock";
}
else if (computerChoice <= 0.66){
    computerChoice = "paper"
}
else{
    computerChoice="scissors"
}


Computer Choice: Part 2 (SYNTAX ERROR)
#2

You seem to have forgotten a couple semicolons.

Also, for some reason, your else if has the if in red color.


#3

How do fix the red "if"?


#4

I honestly don't know, I think it's a forum bug.


#6

Rock would be selected! :slight_smile: