---
title: "Discussion on \"Why do we enforce use == over === in JavaScript?\" | Hashnode"
description: "Discussion on \"Why do we enforce use == over === in JavaScript?\". You might think we're crazy at first, but let me explain everything in detail.\nAn ESLint rule was introduced three weeks ago to ensure engineers consistently use == instead of === when checking for null or undefined.\n// null check guidance\n    'no-re..."
url: "https://hashnode.com/posts/why-do-we-enforce-use-equality-over-strict-equality-in-javascript/693c06033df7033e5a96be0d"
---

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

Discussion

# [Why do we enforce use == over === in JavaScript?](https://tangyouhua.com/why-do-we-enforce-use-equality-over-strict-equality-in-javascript?utm_source=hashnode&utm_medium=feed)

You might think we're crazy at first, but let me explain everything in detail. An ESLint rule was introduced three weeks ago to ensure engineers consistently use == instead of === when checking for null or undefined. // null check guidance 'no-re...

Dec 12, 2025 · 1 min read · tangyouhua.com  
Read the article

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

## Written by

[Youhua Tang](https://hashnode.com/@youhua)

@youhua · Chongqing,China

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

Former Front End Lead@ByteDance

I have been involved in front-end development since 2007 and have experienced the pre-jQuery, jQuery, and MVVM era. I have a deep understanding of front-end development basics. From 2021 to 2023, I worked as a front-end lead at ByteDance Ltd., the parent company of TikTok.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
