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

156 points
De8219299d5c911bd3b3ad45009f4ab2?s=140&d=retro
Submitted by
gordy2506
over 6 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
4d81e20c630ebf7025800ddd4409dcde?s=140&d=retro
Submitted by
bwobst
over 6 years ago