#4 Error


#1

I don't know what is wrong with my code. Whenever I enter it, it always gives me the error SyntaxError: Unexpected token <

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.66)
{
    computerChoice = "Paper";
}
else
{
    computerChoice = "Scissors";
}

#2

The order for a 'less than or equal' is <=, not =<. Change that and your code should work.


#3

Okay thank you. It worked :smiley_cat: