MathObject-6

 

javaScript Math.floor() function returns minimum integer value than the value provided. Math.floor(4.6) will return 4. 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.floor(4.6); document.getElementById("sample").innerHTML = result; </script> </body> </html>
Output