
JavaScript automatically converts types in certain operations — this is called type coercion. '5' + 3 gives '53' (string concatenation). '5' - 3 gives 2 (numeric subtraction). This inconsistency causes subtle bugs. Always use === instead of ==, and use Number(), String(), or Boolean() to convert types explicitly.
Reference:
TaskLoco™ — The Sticky Note GOAT