JavaScript MAX_VALUE Property

## JavaScript Reference

Overview

## JavaScript Objects

JS Array JS Boolean JS Date JS Math JS Number JS String JS RegExp JS Global

## Browser Objects

Window Navigator Screen History Location

## HTML DOM Objects

DOM Document DOM Elements DOM Attributes DOM Events

## HTML Objects

DOM Anchor DOM Area DOM Base DOM Body DOM Button DOM Form DOM Frame/IFrame DOM Frameset DOM Image DOM Input Button DOM Input Checkbox DOM Input File DOM Input Hidden DOM Input Password DOM Input Radio DOM Input Reset DOM Input Submit DOM Input Text DOM Link DOM Meta DOM Object DOM Option DOM Select DOM Style DOM Table DOM td / th DOM tr DOM Textarea

# JavaScript MAX_VALUE Property

JavaScript Number Object

## Example

Return the largest number possible in JavaScript.

Number.MAX_VALUE;

The result will be:

1.7976931348623157e+308
Try it yourself »

Sice MAX_VALUE is a property of the Number object wrapper, you always use it as Number.MAX_VALUE.

Using x.MAX_VALUE, where x a Number object you have created, will return undefined.

## Definition and Usage

The MAX_VALUE property returns the largest number possible in JavaScript.

This static property has a value of 1.7976931348623157e+308.

Note: Numbers larger than MAX_VALUE are represented as infinity.

## Always Use Number.MAX_VALUE

MAX_VALUE is a static property of the JavaScript Number object. You can ony use it as Number.MAX_VALUE.

Using x.MAX_VALUE, where x is a number or Number object, will return undefined:

## Example

var x = 100;
x.MAX_VALUE;

The value of x will be:

undefined
Try it yourself »

## Browser Support

The MAX_VALUE property is supported in all major browsers.

## Syntax

Number.MAX_VALUE

## Technical Details

Return Value: | A Number, 1.7976931348623157e+308
JavaScript Version: | 1.1

JavaScript Number Object

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE