JS Built-ins
TypeCoercionbeginner

Strict Equality (===)

Strict Equality (===)

The === operator does NOT coerce types. Values must have the same type and value.

  • 1 === '1' is false (different types)
  • 0 === false is false (number vs boolean)
  • null === undefined is false (different types, no coercion)

Challenge: Return an object with three boolean properties showing the results of strict equality comparisons.

πŸ’‘ Hints (3)
  • β€’ Strict equality (===) does NOT coerce types.
  • β€’ Both the type and value must be identical for === to return true.
  • β€’ null and undefined are different types, so they are not strictly equal.