undefined often represents an absent value or an unprovided argument. null is often used for intentional absence. Reading an undeclared identifier throws ReferenceError, although typeof an unresolvable name returns 'undefined'. ?? falls back only for null and undefined, while || falls back for any falsy value.
Follow-up Interview Question · What happens to 0, an empty string and false under each operator?