Introduction to JavaScript

Q : Find a method on the [JavaScript Math object] that returns the smallest integer greater than or equal to a decimal number.

Use this method with the number 43.8 . Log the answer to the console.


I already create console.log(Math.ceil(43.8); but it still not works. anyone can solve this. please explain it to me :wink:

You are missing the closing parenthesis for console.log();
Remember it goes in pairs ( )

3 Likes

i get it, thank you very much for helping my problem :slight_smile:

for math ceil i think it give you value integer value more than 43.8 which is 44. But, for math.floor(43.8) it will give you value 43. am i right?

correct :slight_smile: