== is the equality operator, which checks if the two values are equal or not. It doesn’t check the type of the two values. For example:

let a = 10;
let b = “10”;

console.log(a == b); // returns true

=== is the strict equality operator, which checks if the two values are equal and of the same type. For example:

let a = 10;
let b = “10”;

console.log(a === b); // returns false

Leave a Reply

Your email address will not be published. Required fields are marked *