---
title: "Discussion on \"JS: Difference between == & ===\" | Hashnode"
description: "Discussion on \"JS: Difference between == & ===\". What is the difference between commonly used equality operator \"==\" and strict equality operator \"===\"?"
url: "https://hashnode.com/posts/js-difference-between-double-equal-and-tripple-equal/63e7d0100a88a9a1fec2b8a9"
---

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

Discussion

# [JS: Difference between == & ===](https://kamiya.hashnode.dev/js-difference-between-double-equal-and-tripple-equal?utm_source=hashnode&utm_medium=feed)

What is the difference between commonly used equality operator "==" and strict equality operator "==="?

Feb 11, 2023 · 3 min read · kamiya.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#strict-equality-operator](https://hashnode.com/tag/strict-equality-operator)
-   [#equality-operator-in-javascript](https://hashnode.com/tag/equality-operator-in-javascript)

## Written by

[Kamiya Gaikwad](https://hashnode.com/@Kamiya)

@Kamiya

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

Frontend developer

I am a frontend developer and my pronouns are she/her. I have been creating websites and web apps for 4 years now. Looking forward to contributing back to the community with my blogs and coding knowledge.

## Responses 1

Markdown supported · ⌘↵ to post

[Lukas Gaučas](https://hashnode.com/@projektorius96)

[Feb 11, 2023](https://hashnode.com/posts/js-difference-between-double-equal-and-tripple-equal/63e7d0100a88a9a1fec2b8a9/comment/63e82900c23c310c9a861182)

Missing some **TL;DR**:

`==` for values (_auto type conversion between comparisons_ are done internally) , whereas `===` for type AND value, whereas type takes precedence over value, if type does not match to, it short-circuits which leads to optimisation whatsoever .

Please correct if I am wrong . Thank you .

[Vedant Gannarpwar](https://hashnode.com/@vedant29)

[Feb 12, 2023](https://hashnode.com/posts/js-difference-between-double-equal-and-tripple-equal/63e7d0100a88a9a1fec2b8a9/comment/63e82900c23c310c9a861182#reply-63e89a23861f30240f6df311)

Bhai kehna kya chahte ho?

[Kamiya Gaikwad](https://hashnode.com/@Kamiya)

[Feb 12, 2023](https://hashnode.com/posts/js-difference-between-double-equal-and-tripple-equal/63e7d0100a88a9a1fec2b8a9/comment/63e82900c23c310c9a861182#reply-63e8a565861f30240f6df4a1)

Thank you for pointing that out. Will add that to my blog.

[Lukas Gaučas](https://hashnode.com/@projektorius96)

[Feb 12, 2023](https://hashnode.com/posts/js-difference-between-double-equal-and-tripple-equal/63e7d0100a88a9a1fec2b8a9/comment/63e82900c23c310c9a861182#reply-63e9453d768cc62a5a1019ae)

[Kamiya Gaikwad](https://hashnode.com/@Kamiya) Thanks for accepting my remark positively . Good luck !
