JavaScript min() Function Example

JavaScript min() function return the number in minimum value.

Example

<!DOCTYPE html>
<html lang="en">
<head>
  <title>JavaScript Math.min() function</title>
</head>
<body>
    <script type="text/javascript">
        document.write(Math.min(28,13,47,5) + "<br />");
        document.write(Math.min(1.77,2.30,7.32)+ "<br />");
        document.write(Math.min(-5,10) + "<br />");
        document.write(Math.min(-1.77,-2.30,-7.32));
    </script>
</body>
</html>

Run it...   »

Example Result