我需要使用大写字母吗?
var userChoice=prompt("Do you choose rock, paper or scissors?");
var computerChoice=Math.random();
if (computerChoice>0 && computerChoice<0.33)
{
computrChoice=("rock");
}
else if (computerChoice>0.34 && computerChoice<0.66)
{
computerChoice=("paper");
}
else{computerChoice=("scissors");}
console.log(computerChoice);