Loading…

What is the difference between "==" and "==="?

The difference between "==" and "===" is as following

S.no "==" "==="
1. The operator "==" tests the abstract equality, which means before making equality comparison, it does the necessary type conversions. The operator "===" tests only strict equality, i.e., this will not perform type conversion; hence if values compared here are not the same type, it will return false.

Suggest An Answer

No suggestions avaliable!

Latest post from Javascript interview questions

Ask Question