---
title: "Discussion on \"Fine line between'==' and '===' in JavaScript\" | Hashnode"
description: "Discussion on \"Fine line between'==' and '===' in JavaScript\". Have you ever been confused about which comparison operator to use in JavaScript: == or ===?\nRead on to find out the difference between the two and why it matters.\nImagine you have two boxes, each with a different toy inside. One box has a red car an..."
url: "https://hashnode.com/posts/fine-line-between-and-in-javascript/63e963592d09813a957ca1b9"
---

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

Discussion

# [Fine line between'==' and '===' in JavaScript](https://shushma.hashnode.dev/fine-line-between-and-in-javascript?utm_source=hashnode&utm_medium=feed)

Have you ever been confused about which comparison operator to use in JavaScript: == or ===? Read on to find out the difference between the two and why it matters. Imagine you have two boxes, each with a different toy inside. One box has a red car an...

Feb 12, 2023 · 3 min read · shushma.hashnode.dev  
Updated Feb 23, 2023  
Read the article

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

## Written by

[Shushma Muniraj](https://hashnode.com/@Shushma)

@Shushma

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

The web is my playing field

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
