---
title: "Discussion on \"Why NaN === NaN returns false in JavaScript ?!\" | Hashnode"
description: "Discussion on \"Why NaN === NaN returns false in JavaScript ?!\". In this article, I will be explaining lots of concepts related to why NaN === NaN is falsy in JavaScript. I will explain strick equity and types in js."
url: "https://hashnode.com/posts/why-nan-nan-returns-false-in-javascript/6109e6a6725d9303e0351834"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why NaN === NaN returns false in JavaScript ?!](https://blog.sekab.dev/why-nan-nan-returns-false-in-javascript?utm_source=hashnode&utm_medium=feed)

In this article, I will be explaining lots of concepts related to why NaN === NaN is falsy in JavaScript. I will explain strick equity and types in js.

Aug 4, 2021 · 4 min read · blog.sekab.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#tutorials](https://hashnode.com/tag/tutorials)
-   [#js](https://hashnode.com/tag/js)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Amr Ahmed Taher](https://hashnode.com/@sekab)

@sekab · Cairo, Egypt

  
[View profile](https://hashnode.com/@sekab)

Software Engineer @Vodafone

Software engineer @Vodafone | Frontend with +3 years of experience. I enjoy pretty much anything that is made with JavaScript and I love looking at old code bases and refactor it. I'm an anime lover and a league of legends player so add me @sekab on EUNE sever :)

## Responses 1

Markdown supported · ⌘↵ to post

[Gene Nakagaki](https://hashnode.com/@genakag)

[Aug 4, 2021](https://hashnode.com/posts/why-nan-nan-returns-false-in-javascript/6109e6a6725d9303e0351834/comment/610a27e7725d9303e0351d1e)

I didn't know you can't check NaN with the `===` operator! I'm glad I got to know this before running into this problem :D

A little different from NaN, but I was a little surprised with this one also.

```
Boolean("false") // true
```

Untyped languages are so hard!
