JavaScript Interview Question – What is the result?

preview_player
Показать описание
In JavaScript, NaN stands for "Not a Number", but surprisingly, its type is still "number". This is considered one of the odd behaviors of the language. Although NaN means an invalid number, JavaScript still categorizes it as a number type.
Рекомендации по теме
visit shbcf.ru