Math.random Math.floor

Hello !
Why i don’t have a whole number with Math.floor ?

Please help !


You never logged that number to the console

1 Like

Because it print the first line only. And you didn’t put Math.floor() there

You have put Math.floor() on line 4 but not printing it to the console.

1 Like

It’s ok

i needed to logged it indeed;
Thank you

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