<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[আশরাফুল হক]]></title><description><![CDATA[বলার মতো এখনো কিছুই করিনি, তবে শিখতেছি। ইনশা-আল্লাহ একদিন আমারও বলার মতো কিছু একটা থাকবে সেদিন লিখবো]]></description><link>https://ahaque.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Mon, 19 Oct 2026 13:59:49 GMT</lastBuildDate><atom:link href="https://ahaque.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Data type in JavaScript]]></title><description><![CDATA[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...]]></description><link>https://ahaque.hashnode.dev/data-type-in-javascript</link><guid isPermaLink="true">https://ahaque.hashnode.dev/data-type-in-javascript</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[data types]]></category><category><![CDATA[js data type]]></category><dc:creator><![CDATA[Ashraful haque (Ariz)]]></dc:creator><pubDate>Fri, 31 Mar 2023 14:09:27 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/cckf4TsHAuw/upload/19f8798c110bc17d51ba0015ef51f1b3.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>data type in javascript is fun.</p>
<p>to find out the maximum and minimum value of a number you should write as well as like this...</p>
<p>here as you can see that i have took a nn variable &amp; assigned its value. but you will get two different number of <strong>MAX_VALUE</strong> of 45.45 &amp; <strong>MAX_SAFE_INTEGER</strong> 45.45.<br />when you write the code you will get its <strong>MAX_VALUE is <mark>1.7976931348623157e+308.</mark></strong></p>
<p>and <strong>MAX_SAFE_INTEGER is <mark>9007199254740991.</mark></strong></p>
<p>its happened because <strong>MAX_VALUE</strong> &amp; <strong>MAX_SAFE_INTEGER</strong> isn't same.thats why its return different type of data.</p>
<p>as well as you will get also the same for <strong>MIN_VALUE</strong> &amp; <strong>MIN_SAFE_INTEGER.</strong></p>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> nn = <span class="hljs-built_in">Number</span>(<span class="hljs-number">45.45</span>)

<span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">Number</span>.parseInt(nn))

<span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">Number</span>.MAX_VALUE)

<span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">Number</span>.MIN_VALUE)

<span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">Number</span>.MIN_SAFE_INTEGER)

<span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">Number</span>.MAX_SAFE_INTEGER)
</code></pre>
]]></content:encoded></item></channel></rss>