Logic says the system must exit the if-else loop once the condition is met and execute the instruction outside the loop. Still, computerChoice always reflects 'Scissors'.
As the above code treated each no. less than 1 so I tried another version, still get the same result. Help plz...
//var userChoice = prompt (" Do you choose rock, paper or scissors");
var computerChoice = Math.random();
if (computerChoice <= 0.33)
computerChoice = "rock";
else if (computerChoice > 0.33 && computerChoice <= 0.66)
computerChoice = "paper"
else (computerChoice > 0.66 && computerChoice <= 1)
computerChoice = "scissors";