Latest web development tutorials

JavaScript MIN_VALUE property

Number Object Reference JavaScript Number Object

Examples

Returns the minimum number of Javascript:

Number.MIN_VALUE;

Output:

5e-324

try it"

Definition and Usage

MIN_VALUE property in JavaScript is the smallest representable number (close to 0, but not negative). Its approximate value of 5 x 10 -324.

Note: smaller than MIN_VALUE attribute is denoted by the number 0.

Note: MIN_VALUE JavaScript is closest to the number 0, not a negative value for the property MAX_NUMBER.


Use Number.MIN_VALUE

MIN_VALUE is a static property Javascript Number object, the method calls for this attribute is: Number.MIN_VALUE.

Using a custom object x Number to call the property (x.MIN_VALUE), returns undefined:

Examples

var x = 100;
x.MIN_VALUE;

x output:

undefined

try it"


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support MIN_VALUE property.


grammar

Number.MIN_VALUE

technical details

return value: A Number, 5e-324
JavaScript version: 1.1


Number Object Reference JavaScript Number Object