Poll: what does a == null
do exactly in JavaScript?
- I know exactly what it does.
- I have some ideas, but not exactly.
- I don't know exactly what it does.
- I don't know exactly what it does before today.
you can add what it does in the answer as well.
Poll: what does a == null
do exactly in JavaScript?
you can add what it does in the answer as well.
good answer... I think the cases with ==
is just so highly unpredictable... and so many different cases
No, I just can't predict about
==
in JavaScript, so number 3.Also, and interestingly, is there a performance difference, or just convenience for type coercion?