filmov
tv
JavaScript Interview Question – What is the result?

Показать описание
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.