This forum is now read-only. Please use our new forums at discuss.codecademy.com.

156 points

Submitted by
gordy2506
over 7 years ago

can someone give me some advice?

whats wrong with this?

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


1 vote

permalink

JS is case-sensitive.

You need to capitalize "m". Like this:

var computerChoice = Math.random();
console.log(computerChoice);

550 points

Submitted by
bwobst
over 7 years ago