Syntax error


#1


Oops, try again. There was a problem with your syntax. My eyes are falling out of their sockets...


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


#2

Yes, you asked userChoice
Yes, you randomized computerChoice

And then? dont you have to compare them to find the winner?


#3

There are only two instructions on the page. I've completed both instructions, (as far as I can tell) but it still seems to have a problem with my code.


#4

Right, as fas as you can tell.
If so, please mentions each of the instructions and its (your) related code. put them here and then others can tell if it is enough.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.