JavaScript Objects The Math Object- Math max() - Javascript Objects

What is JavaScript - Math max Method?

This method returns the largest of zero or more numbers. If no arguments are given, the results is –Infinity.

Syntax

Its syntax is as follows −


Parameter Details

Return Value

Returns the largest of zero or more numbers.

Example

Try the following example program.


Output

First Test Value : 100

Second Test Value : -1

Third Test Value : 0

Fourth Test Value : 100


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Javascript Objects Topics