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. |
BY Best Interview Question ON 25 Aug 2022