computerChoice part2 "rock, paper, scissors"


var userChoice = prompt("Do you choose rock, paper, or scissors?");
var computerChoice = Math.random()
if computerChoice(0-0.33) {
return ("rock");
else if computerChoice(0-.34-0.66){
return ("paper");
else computerChoice(0.67-1) {
return ("scissors");
//Syntax error! Can anyone figure out the problem with this code????


computerChoice is not a function but a variable. it cannot be called. google if/ else conditions in Javascript you are doing the wrong thing,Scavenge the forums for a possible correction on this topic


Thank you rydan for the reply