I don't understand 4 on Rock Paper Scissors!


#1

My code is:
var userChoice = prompt("Do you choose rock, paper, or scissors?");
var computerChoice = Math.random();
console.log(computerChoice);
if (computerChoice <= 0.33){
set("rock");
}
else if (computerChoice >= 0.67){
set("scissors");
}
else function {
set("paper");
}

It just rapidly says: Oops, try again.
Your code doesn't look quite right. Check the Hint if you need help!


#2

should be

 computerChoice = "rock";

#3

Thanks! It's working now! n_n :grin: