---
title: "Discussion on \"Day 4: Equality? In JavaScript?!\" | Hashnode"
description: "Discussion on \"Day 4: Equality? In JavaScript?!\". So. Day 4. I walked in thinking I understood what \"equal\" means. I've been using the word \"equal\" my entire life. Turns out JavaScript and I have very different definitions.\nI'm learning through my we"
url: "https://hashnode.com/posts/day-4-equality-in-javascript/6ac3b221a0b5c2228a2cbf11"
---

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

Discussion

# [Day 4: Equality? In JavaScript?!](https://mudassarbhatti.hashnode.dev/day-4-equality-in-javascript?utm_source=hashnode&utm_medium=feed)

So. Day 4. I walked in thinking I understood what "equal" means. I've been using the word "equal" my entire life. Turns out JavaScript and I have very different definitions. I'm learning through my we

Oct 5 · 5 min read · mudassarbhatti.hashnode.dev  
Updated Oct 7  
Read the article

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

## Written by

[Mudassar Ali](https://hashnode.com/@MudassarBhatti)

@MudassarBhatti

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

DPT student at Rashid Latif Medical College, Lahore — bridging healthcare & technology. Learning JavaScript, web development & AI automation in public, one post at a time.

## Responses 1

Markdown supported · ⌘↵ to post

[indiainfranotes](https://hashnode.com/@indiainfranotes)

[Oct 5](https://hashnode.com/posts/day-4-equality-in-javascript/6ac3b221a0b5c2228a2cbf11/comment/6ac3bb0832f6993fd239f503)

Nice write-up, Day 4 is where JavaScript stops feeling friendly. The habit that saved me was using === everywhere and treating == as something to read, not write, with one exception some people keep: value == null to catch both null and undefined. NaN !== NaN still surprises people years in, which is why Number.isNaN and Object.is exist. Which comparison result surprised you the most so far?

iin1005ev
