Whats wrong with this code?


#1

whats wrong with this code?
var userChoice=prompt("Do you choose Rock, Scissor or Paper");
var computerChoice = Math.random();
console.log(computerChoice);
if (computerChoice =<0.33);{
console.log(rock);
}
else if (computerChoice=>0.33 or =<0.66);{
console.log(paper);
}
else if (computerChoice =>0.66 or =<1);{
console.log(Scissor);
}


Help #4!
#2

Semi-colons where they don't belong. Never write a semi-colon before an opening curly brace.

... );{    // incorrect syntax

#3

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