The == operator checks equality only whereas === checks equality, and data type, i.e., a value must be of the same type.