JavaScript Number

Nimur Hasan
Nov 2, 2020

When used as a function, Number(value) converts a string or other value to the Number type. If the value can't be converted, it returns NaN.

Number('abc');
output: NaN

The maximum safe integer in JavaScript (253 - 1).

The minimum safe integer in JavaScript (-(253 - 1)).

NaN = Not a Number

--

--

Nimur Hasan

I’m Md Nimur Hasan, a MERN Stack Developer. I know MongoDB, express, react, node js, and continue deep learning on these.