0 votes
in JavaScript by
In JavaScript, what is NaN?

1 Answer

0 votes
by
NaN stands for Not a Number. NaN is always used to compare unequal to any number, which includes NaN itself. Hence, it is generally used to bring out an error condition for any function that can return a valid number. When a string, for example, is converted into a number and if it cannot be done, then the NaN shows up.

Related questions

0 votes
asked Mar 5, 2021 in D Programming by SakshiSharma
0 votes
asked Feb 20 in JavaScript by DavidAnderson
...