undefined === null => false
undefined == null => true
I have thought about the reason of undefined == null
and found out only one case:
if(document.getElementById() == null) ....
Is there any other reason to make (undefined === null) == false
?
Is there any other examples of use ===
- operation in javascript?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…