+ 1

null == undefined , null === undefined, which one will return true in JavaScript ?

30th May 2018, 1:28 AM
Jalal Uddin
Jalal Uddin - avatar
2 odpowiedzi
+ 7
The first one (null == undefined). If you want to know why Strict Equality Comparison (===) works different from Abstract Equality Comparison (==), you should review this article: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness
30th May 2018, 1:54 AM
Mickel
Mickel - avatar
0
null == undefined.
30th May 2018, 3:51 PM
Mehar Zain
Mehar Zain - avatar