Syntax error


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";
        computerChoice = "scissors";


Yes, you asked userChoice
Yes, you randomized computerChoice

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


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.


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.


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