This site is mobile accessible. Press the "Tap Here" button to use a different font-size.
Smartphone icons created by Freepik - Flaticon
Property | Description |
---|---|
EPSILON | The difference between 1 and the smallest number > 1. |
MAX_VALUE | The largest number possible in JavaScript |
MIN_VALUE | The smallest number possible in JavaScript |
MAX_SAFE_INTEGER | The maximum safe integer (253 - 1) |
MIN_SAFE_INTEGER | The minimum safe integer -(253 - 1) |
POSITIVE_INFINITY | Infinity (returned on overflow) |
NEGATIVE_INFINITY | Negative infinity (returned on overflow) |
NaN | A "Not-a-Number" value |
is the difference between the smallest floating point number greater than 1 and 1.
let x = Number.EPSILON;
is a constant representing the largest possible number in JavaScript.
let x = Number.MAX_VALUE;
let x = 6;
x.MAX_VALUE
is a constant representing the lowest possible number in JavaScript.
let x = Number.MIN_VALUE;
let x = Number.MAX_SAFE_INTEGER;
let x = Number.MIN_SAFE_INTEGER;
let x = Number.POSITIVE_INFINITY;
is returned on overflow:
let x = 1 / 0;
let x = Number.NEGATIVE_INFINITY;
is returned on overflow:
let x = -1 / 0;
is a JavaScript reserved word for a number that is not a legal number.
let x = Number.NaN;
Trying to do arithmetic with a non-numeric string will result in
(Not a Number):let x = 100 / "Apple";
Eventually the navigation links, above, will be replaced by these (previous) and (next) buttons below.
JavaScript icons used in the buttons provided by ICONS8.COM. Smartphone icons created by Freepik - Flaticon