I can't see where my syntax is wrong on part 2


#1


var userChoice = prompt("Do you choose rock, paper or scissors?");

var computerChoice = Math.random();

if (computerChoice <= 0.33) {
    return "rock";   
}

else if (computerChoice === 0.34 || <= 0.66){
    return "paper";   
}

else {
    return "scissors";
}


#2

Never mind. Figured out I was missing an extra computerChoice


#3

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