Equality:triple Vs double equals
- zakariyesahid96
- Jan 28, 2022
- 1 min read
Double equals checks for equality of value burbjor equality of type.
It coerces both values go check same type and then compare, may lead to unexpected results.
For example 1==1 would equal true.
Triple = checks for w of value and type for example 5===5; would be true.
The same apples with != and !==
Comments