What is == vs ===?

The difference between == and === is that: == converts the variable values to the same type before performing comparison . This is called type coercion. === does not do any type conversion (coercion) and returns true only if both values and types are identical for the two variables being compared.

Sizin İçin Seçtik  How do you check if a string is not equal to another string in Java?

Leave a Reply

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