MathObject-5

 

javaScript Math.ceil will return the minimum integer number greater than the value provided. Math.ceil(4.2) will return 5. See the code snippet:

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <p id="sample"></p> <script> var result = Math.ceil(4.2); document.getElementById("sample").innerHTML = result; </script> </body> </html>
Output