Warning: session_start(): Unable to clear session lock record in /var/www/tutorialspoint/questions/config.php on line 18

Warning: session_start(): Failed to read session data: memcached (path: in /var/www/tutorialspoint/questions/config.php on line 18
Math.min() function JavaScript

Math.min() function JavaScript

HTMLJavascriptWeb DevelopmentFront End Technology

The min() function of the Math object accepts multiple numbers and returns the largest numbers among them.

  • If you pass single number to this function it will return the same
  • And, if you do not pass any arguments to it will return infinity.


Its Syntax is as follows

Math.min(48, 148, 3654);


 Live Demo

   <title>JavaScript Example</title>
   <script type="text/javascript">
      var result = Math.min(48, 148, 3654);
      document.write("Minimum of the given numbers: "+result);


Maximum of the given numbers: 48
Published on 29-Oct-2018 10:16:02