Math JavaScript Tutorial

Syntax

math.min(num1, num2)
The min() method of the Math object gets the minimum number of the two number parameters passed to it.
The smaller value is returned as the result.


    
    
    
    
    
    This example takes the two numbers entered and determines which is the smaller number.
    


    Enter First Number:
    
    

    Enter Second Number:
    
    
    

    The Minimum number is: