

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Math.min() function JavaScript
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.
Syntax
Its Syntax is as follows
Math.min(48, 148, 3654);
Example
<html> <head> <title>JavaScript Example</title> </head> <body> <script type="text/javascript"> var result = Math.min(48, 148, 3654); document.write("Minimum of the given numbers: "+result); </script> </body> </html>
Output
Maximum of the given numbers: 48
- Related Questions & Answers
- Math. fround() function in JavaScript
- Math. hypot() function in JavaScript
- JavaScript: How to Find Min/Max Values Without Math Functions?
- Get minimum number without a Math function JavaScript
- Implementing Math function and return m^n in JavaScript
- PHP min() Function
- JavaScript Math Object example
- min() function in PHP
- What are JavaScript Math Functions?
- What is math object in JavaScript?
- What is Math Object in JavaScript Program?
- Min window substring in JavaScript
- Using MIN IF function in SAP Dashboard
- Check for perfect square without using Math libraries - JavaScript
- Average of array excluding min max JavaScript
- Math Class in C#
Advertisements