if语句


#1

Oops, try again.
You seem to have something wrong with your code. It threw the
following error: [Exception... "Component is not available" nsresult:
"0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
https://www.codecademy.com/assets/repl.html line 1 > eval ::
:: line 1" data: no]
I don't know where there is a mistake.the code below:
var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
if (computerChoice < 0.34) {
computerChoice = "rock";
} else if(computerChoice <= 0.67) {
computerChoice = "paper";
} else {
computerChoice = "scissors";
} console.log("Computer: " + computerChoice);


#3

looks like perfect to me.
If it keep sending warning message, maybe you can retype it using English keyboard instead of using Chinese keyboard shifted english.
() , " are tiny different in English and Chinese.