How to get the minimum value among two numbers in JavaScript

 
In JavaScript you can use the math.min() method for finding smallest number among two or three numbers

Example:

<html>
   <head>
     <title>How to get the minimum value among two numbers in JavaScript</title>
       <script language="JavaScript">
          <!--
            number1 = 23;
            numner2 = 34;
            document.write("The smallest number among these two numbers is " + Math.min(number1 , number2));
          //  -->
       </script>
    </head>
<body>
</body>
</html>