The major difference is that when we compare a number with a string with numeric literal, == allows that, but === doesn't allow that why because it not only checks the value but also type of two variable, if two variables are not of the same type "===" return false, while "==" return true. So it is mainly based on the type of variables.