# Data type in JavaScript

data type in javascript is fun.

to find out the maximum and minimum value of a number you should write as well as like this...

here as you can see that i have took a nn variable & assigned its value. but you will get two different number of **MAX\_VALUE** of 45.45 & **MAX\_SAFE\_INTEGER** 45.45.  
when you write the code you will get its **MAX\_VALUE is <mark>1.7976931348623157e+308.</mark>**

and **MAX\_SAFE\_INTEGER is <mark>9007199254740991.</mark>**

its happened because **MAX\_VALUE** & **MAX\_SAFE\_INTEGER** isn't same.thats why its return different type of data.

as well as you will get also the same for **MIN\_VALUE** & **MIN\_SAFE\_INTEGER.**

```javascript
var nn = Number(45.45)

console.log(Number.parseInt(nn))

console.log(Number.MAX_VALUE)

console.log(Number.MIN_VALUE)

console.log(Number.MIN_SAFE_INTEGER)

console.log(Number.MAX_SAFE_INTEGER)
```
