DEV Community

Avinashd
Avinashd

Posted on

Js in bits - 5.1(datatypes - Number)

Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.

datatypes

Number

Following comes under number datatype

Image description

Special -> Infinity -Infinity NaN

Image description

NaN -> sticky. Any operation with Nan gives NaN

Image description

Except:

Image description

Here 2**0 represents 2 power 0.
** -> exponentiation.

Leave y'r thoughts....

Top comments (0)