A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/javascript/javascript-number-max_value-min_value-property/ below:

JavaScript Number MAX_VALUE & MIN_VALUE Property

JavaScript Number MAX_VALUE & MIN_VALUE Property

Last Updated : 11 Jul, 2025

JavaScript Number.MAX_VALUE and Number.MIN_VALUE is used to represent maximum and minimum numeric values in javascript. 

Syntax:

Number.MAX_VALUE 
Number.MIN_VALUE 

Return Type: Both Number.MAX_VALUE and Number.MIN_VALUE returns a numeric value.

Example 1: In this example, we will print the maximum value

javascript
function GFGFun() {
    // Undefined Behaviour
    let res = Number.MAX_VALUE;
    console.log(res);
}
GFGFun();

Output : 

1.7976931348623157e+308

Example 2: In this example, we will print the minimum value

JavaScript
function GFGFun() {
    // Undefined Behaviour
    let res = Number.MIN_VALUE;
    console.log(res);
}
GFGFun();

Output:

5e-324

Supported Browsers:

We have a complete list of JavaScript Number constructor, properties, and methods list, to know more about the numbers please go through that article.



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4