== vs ===

All Questions

Asked by: Zoha Tazmen

What is the difference between == and === in programming?

Answers (1)

== is the equality operator that checks if two values are equal after type coercion (i.e., it converts the operands to the same type before comparison). === is the strict equality operator that checks if two values are equal and of the same type, without type coercion.

Answered by: Zoha Tazmen

Your Answer