=== Strict Equality (Checks Value + Type) — Always use this!!== Strict Inequality== Loose Equality (Coerces Types) — Avoid!Only these 8 values evaluate to false in boolean context:
false, 0, -0, 0n, "", null, undefined, NaN.
Everything else is Truthy! (Including [] and {})
&& (AND): Short-circuits on first falsy value.|| (OR): Short-circuits on first truthy value.?? (Nullish Coalescing): Returns right side ONLY if left side is null or undefined. Keeps 0 and ""!? : (Ternary): condition ? ifTrue : ifFalsefunction processOrder(order) {
if (!order) return { error: "No order" };
if (!order.paymentReceived) return { error: "Unpaid" };
// Happy Path
shipItem(order);
return { success: true };
}