---
title: "Discussion on \"Type coercion confusion in JavaScript\" | Hashnode"
description: "Discussion on \"Type coercion confusion in JavaScript\". Today I learned this is not true in JavaScript, and I'm shocked 🤯\"true\" == true //returns false— James Q Quick (@jamesqquick) June 13, 2022  \nMy answer\nYes, when you allow coercion with == you get NaN is not equal to 1.That is what the spec says.htt..."
url: "https://hashnode.com/posts/type-coercion-confusion-in-javascript/62a86d930baf4306d9493633"
---

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

Discussion

# [Type coercion confusion in JavaScript](https://blog.ivanbuncic.com/type-coercion-confusion-in-javascript?utm_source=hashnode&utm_medium=feed)

Today I learned this is not true in JavaScript, and I'm shocked 🤯"true" == true //returns false— James Q Quick (@jamesqquick) June 13, 2022 My answer Yes, when you allow coercion with == you get NaN is not equal to 1.That is what the spec says.htt...

Jun 14, 2022 · 1 min read · blog.ivanbuncic.com  
Updated Jun 20, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Ivan Buncic](https://hashnode.com/@ivanbuncic)

@ivanbuncic · The Hague, Netherlands

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

Full Stack Copy Paster™. Started with LOAD '''' ENTER & PLAY. | 0.7x developer

𝙵𝚞𝚕𝚕 𝚂𝚝𝚊𝚌𝚔 𝙲𝚘𝚙𝚢 𝙿𝚊𝚜𝚝𝚎𝚛 ™ | Started in 1984 with LOAD '''' ENTER &amp; PLAY.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
