About 22,600,000 results
Open links in new tab
  1. NaN - JavaScript | MDN

    Jul 8, 2025 · To tell if a value is NaN, use Number.isNaN() or isNaN() to most clearly determine whether a value is NaN — or, since NaN is the only value that compares unequal to itself, you …

  2. JavaScript NaN Property - W3Schools

    Description In JavaScript, NaN is short for "Not-a-Number". In JavaScript, NaN is a number that is not a legal number. The Global NaN property is the same as the Number.Nan property.

  3. How do you check that a number is NaN in JavaScript?

    Apr 16, 2010 · The NaN (Not-a-Number) is a weirdo Global Object in javascript frequently returned when some mathematical operation failed. You wanted to check if NaN == null which …

  4. An Essential Guide to JavaScript NaN

    In this tutorial, you'll learn about the JavaScript NaN, how to check if a value is NaN, and how to handle NaN effectively.

  5. JavaScript NaN Property - GeeksforGeeks

    Jul 15, 2025 · NaN, which stands for "Not a Number," is a special value in JavaScript that shows up when a mathematical operation can't return a valid number. This can happen if you try …

  6. JavaScript NaN Property: Understanding the Not-a-Number Value

    NaN stands for "Not a Number," but here‘s the first twist: in JavaScript, it‘s actually classified as a number type. This seemingly contradictory behavior stems from IEEE 754, the floating-point …

  7. Why NaN !== NaN in JavaScript (and the IEEE 754 story behind it)

    Oct 18, 2025 · As you can see, after adding, subtracting, checking the maximum and minimum values - we always get the same result. If that’s the case, why do we need such a value? To …

  8. JavaScript NaN Property: Not-a-Number - CodeLucky

    Feb 5, 2025 · In JavaScript, NaN stands for “Not-a-Number”. It is a special numeric value that indicates an invalid or undefined mathematical operation. It’s crucial to understand what NaN …

  9. How to Deal with NaN in JavaScript: Common Causes and Fixes

    Oct 11, 2024 · In JavaScript, if you try to convert an invalid string into a number, you’ll get NaN again. It’s like mixing up the math conversation entirely. So why does NaN exist? Well, it’s …

  10. isNaN () - JavaScript | MDN

    Jul 8, 2025 · The isNaN() function answers the question "is the input functionally equivalent to NaN when used in a number context". If isNaN(x) returns false, you can use x in an arithmetic …