---
title: "Discussion on \"Understanding loose equality and strict equality\" | Hashnode"
description: "Discussion on \"Understanding loose equality and strict equality\". The article is about how strict equality and loose equality works behind the hood!"
url: "https://hashnode.com/posts/understanding-loose-equality-and-strict-equality/63f4d4c13d5dc60e2b30e588"
---

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

Discussion

# [Understanding loose equality and strict equality](https://rajashreeparhi.hashnode.dev/understanding-loose-equality-and-strict-equality?utm_source=hashnode&utm_medium=feed)

The article is about how strict equality and loose equality works behind the hood!

Feb 21, 2023 · 3 min read · rajashreeparhi.hashnode.dev  
Read the article

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

## Written by

[Rajashree Parhi](https://hashnode.com/@rajashreeparhi)

@rajashreeparhi · India

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

I am a Software Engineer

I write what I learn along my coding journey!

## Responses 2

Markdown supported · ⌘↵ to post

[Vineet Jadav](https://hashnode.com/@data1science1)

[Apr 2, 2024](https://hashnode.com/posts/understanding-loose-equality-and-strict-equality/63f4d4c13d5dc60e2b30e588/comment/660c128a88633651c65508ee)

Loose equality (`==`) in JavaScript attempts to convert values to the same type before comparison, potentially leading to unexpected results. Strict equality (`===`) compares both value and type, ensuring a more accurate comparison. Do check out [bostoninstituteofanalytics.org/java-programming](https://bostoninstituteofanalytics.org/java-programming/)

[Akash Kumar Singh](https://hashnode.com/@Darkshadow2074)

[Feb 28, 2023](https://hashnode.com/posts/understanding-loose-equality-and-strict-equality/63f4d4c13d5dc60e2b30e588/comment/63fe43dff3c0552d3c692116)

great blog 😀

[Bhavesh Upadhyay](https://hashnode.com/@brupadhyay)

[Feb 22, 2023](https://hashnode.com/posts/understanding-loose-equality-and-strict-equality/63f4d4c13d5dc60e2b30e588/comment/63f64da3437bc8d091bd0afc)

Very well done🚀

[Rajashree Parhi](https://hashnode.com/@rajashreeparhi)

[Feb 23, 2023](https://hashnode.com/posts/understanding-loose-equality-and-strict-equality/63f4d4c13d5dc60e2b30e588/comment/63f64da3437bc8d091bd0afc#reply-63f7bf63207712e9dab05178)

Thankss!
