© 2026 Hashnode
A lot of people including me had a misconception that in JavaScript “==” doesn’t check type and “===” does, but sometimes we have to unlearn some things. So before understanding these two equalities we have to understand Coercion. What is Coercion Co...

While using the equality operator in javascript. We usually have two options that are to either use Loose equality (==) or to use Strict equality (===). But making choice hastily without knowing the exact behavior of both can lead to unexpected behav...

Introduction Before understanding == and ===, let's take a look at how the conversion from one data type to other works behind the hoods! Type Conversion Type conversion: As the name suggests, it is the process of converting one type into another. Va...

This blog will cover the concepts of type conversion, type coercion, loose equality operator, and strict equality operator in javascript, with the main focus on comparing the two operators. Introduction to Equality Operators In javascript, we have tw...

In JavaScript, equality operators are used to determine the equality of values in expressions and conditions. There are two main equality operators in JavaScript: the double equal sign (==) also known as Loose Equality and the triple equal sign (===)...
