4.Build "Rock, Paper, Scissors" Pt. 2- Help?


#1

var userChoice = prompt ("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
console.log(computerChoice);

if (computerChoice <= 0.33) {
console.log("rock");
}
else if (computerChoice >= 0.67) {
console.log("scissors");
}
else function {
console.log("paper");
}

I might be going about this all wrong but, does anybody have any idea what I've been doing wrong?
I've tried everything I can think of.


#2

the idea here is not to log the string at each check but rather set computerChoice to be that string