我在這裏得到語法錯誤,但無法理解爲什麼。 TIA語法錯誤:意外的令牌錯誤
var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
console.log(computerChoice);
if(computerChoice >= 0.33) {
computerChoice === "rock";
} else if (computerChoice >= 0.34 && <= 0.66){
computerChoice === "paper";
} else (computerChoice >= 0.67 && <= 1) {
computerChoice === "scissors";
}
什麼是錯誤...控制檯日誌說什麼? – Jarrod