Why does this code, the result is false ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Why does this code, the result is false ??

https://www.sololearn.com/post/913325/?ref=app

1st Feb 2021, 1:10 PM
Carbon dioxide
Carbon dioxide - avatar
3 Answers
+ 7
https://code.sololearn.com/W3CwqAGgJqRV/?ref=app See this code! All the best!
1st Feb 2021, 1:17 PM
Abhiyantā
Abhiyantā - avatar
+ 4
NaN means Not A Number. It is False because NaN is special(in short) and it really means nothing even to itself. Like "Null" and "Undefined", NaN is special with no actual value in Javascript.
1st Feb 2021, 1:16 PM
Kanji-50
Kanji-50 - avatar
+ 3
Thanks for the answer MrDevEzeoke Rishav Tiwari ...
1st Feb 2021, 2:04 PM
Carbon dioxide
Carbon dioxide - avatar