Math.random Math.floor


#1

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

Please help !

kkaaro


#2

You never logged that number to the console


#3

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.


#4

It’s ok

i needed to logged it indeed;
Thank you