Java Script Core Concept:

Double and Tripple equal ( == or ===):

Double equal:
let’s clear the confusion about “ == ” or “ === ” equal ,
first of all, Double equal will check the value of the variable not check the type of variable, in the below example string 0 and int 0 will return true, because of using two equal “==”.

Tripple equal:
in triple equal will check the value of the variable and also check the type of variable, in the below example string 0 and int 0 will return false, because of using two equal “===”.

const a = 0;
const b = “0”;
if (a == b) {
console.log(“true”);
} else {
console.log(“false”);
}
//output: false