const integer = 4; const float = 1.5; typeof integer; // => 'number' typeof float; // => 'number'
Plus there are 2 special number values:
Infinity (a number bigger than any other number) and
NaN (representing "Not A Number" concept):
const infinite = Infinity; const faulty = NaN; typeof infinite; // => 'number' typeof faulty; // => 'number'
Does your business need an interactive website or app?
The technology used to develop the overall app by the developers from WebClues Infotech is at par with the latest available technology.
For more inquiry click here https://bit.ly/31eZyDZ
Book Free Interview: https://bit.ly/3dDShFg
While working directly with NaN is rare, it can appear surprisingly after a failed operation on numbers.
Let’s take a closer look at NaN special value: how to check if a variable has NaN, and importantly understand the scenarios that create “Not A Number” values.
With 15+ years of domain expertise, we have successfully delivered 13800+ projects and have successfully garnered 6800+ happy customers with 97%+ client retention rate.