+ 6

If typeof NaN output 'number' so when is a number not a number?

let a = "hello"*5 value of a is NaN that is short for " Not a Number". But typeof a ouput 'number' Why ?

7th Jan 2021, 9:36 AM
Elon
Elon - avatar
3 Antworten
+ 4
Spentify understood ! Thanks
7th Jan 2021, 9:44 AM
Elon
Elon - avatar
+ 2
A number is never not a number, but a NaN is a number 😁
7th Jan 2021, 10:52 AM
Sonic
Sonic - avatar
+ 2
Sonic 😁😁
7th Jan 2021, 12:01 PM
Elon
Elon - avatar