JavaScript, Programming, Programming Languages, Computer Science, Data Type.
JavaScript and most programming languages, Nan represents a computational error. Similar to Infinity, NaN can be computed with a mathematical function failure (such as attempting to get the square root of a negative number) or can be represented with the NaN property of the global object in