Equality in Javascript

Equality

Exception: There is one case where using loose equality works well: If you want to capture both “undefined” and “null”. So o == null is going be true both when o is undefined and when it is null.