Lesson 3, says "Math is not defined"?


#1


https://www.codecademy.com/courses/javascript-beginner-en-Bthev-mskY8/0/3?curriculum_id=506324b3a7dffd00020bf661#


It keeps saying math not defined, what am i doing wrong? I've tried adding 0,1 between the brackets after random.


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


#2

math.random();  // javasctipt is case_sensetive

m should be capital


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.