-1
var choice1 = prompt("Do you choose rock, paper or scissors?"); var choice2 = Math.random(); if (choice2 < 0.34) { choice2 = "rock"; } else if(choice2 <= 0.67) { choice2 = "paper"; } else { choice2 = "scissors"; } var compare = function(choice1, choice2) { if(choice1 === choice2) ...