This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by gordy2506
over 11 years

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”);

Answer 50aad733165548080a00005e

1 vote

Permalink

JS is case-sensitive.

You need to capitalize “m”. Like this:

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

points
Submitted by bwobst
over 11 years