Lesson 6


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

console.log(Math.random)

this suppose to give me random number but its giving me

[Function: random]

Please help i am totally new to programming

<do not remove the three backticks above>

#2

HI @fiawonye,

To access the Math.random() built-in methods, you need to call it the same way you’d use a function call with the brackets ( )

So add a pair of ( ) after the Math.random in your code.

console.log(Math.random());

Then it will work. Cheers :slight_smile:


#3

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