---
title: "Comment by Gene Nakagaki on \"Why NaN === NaN returns false in JavaScript ?!\" | Hashnode"
description: "I didn&#39;t know you can&#39;t check NaN with the === operator! I&#39;m glad I got to know this before running into this problem :D A little different from NaN"
url: "https://hashnode.com/posts/why-nan-nan-returns-false-in-javascript/6109e6a6725d9303e0351834/comment/610a27e7725d9303e0351d1e"
---

[Discussion](https://hashnode.com/posts/why-nan-nan-returns-false-in-javascript/6109e6a6725d9303e0351834)

Comment [Why NaN === NaN returns false in JavaScript ?!](https://hashnode.com/posts/why-nan-nan-returns-false-in-javascript/6109e6a6725d9303e0351834)

[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!
