Guys I need help my code is refusing to run

its saying math is not defined please help

  **Your code so far**

function randomFraction() {

// Only change code below this line

return math.random();

// Only change code above this line
}
console.log(randomFraction)
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36.

Challenge: Generate Random Fractions with JavaScript

Link to the challenge:

Capitalization is very important in module names

JavaScript has a Math.random() function

1 Like

so how can I write the math.random()

thanks I finally got it

function randomFraction() {

// Only change code below this line

return Math.random();

// Only change code above this line

}

console.log(randomFraction())

1 Like