5. build rock


#1

what is the problema here???'

var userChoice = prompt("Do you choose rock, paper or scissors?")
var computerChoice = Math.random()
console.log(computerChoice).
if (computerChoice < 0.34) {
computerChoice = "rock"
} else if(computerChoice <= 0.67) {
computerChoice = "paper"
} else {
computerChoice = "scissors"
}


#2

Hi,

It seems like you have an unnecessary . in your code in line 3

console.log(computerChoice).

If anything, it should be a semi-colon. Should you correct that your code should execute correctly.


#3

Hi, notes are above.


#4

This is a copy of my previous code. You will not need the /* in front or after the code though. /* just makes this a comment. If that makes sense. Hope this helped!