For the comparison we use === and for Equality we use the == operator.
true == 1;
"2" == 2;
true === 1;
"2" === 2;
Now the reason why we use == as equality because the equality operator == does type coercion, which means that the interpreter implicitly tries to convert the values before comparing.
Whereas the ==== operator does not do type coercion, and thus does not convert the values when comparing, and is, therefore, faster as it skips one step.