What does `undefined == null` evaluate to?

JavaScript Associate Easy

JavaScript Associate — Easy

What does `undefined == null` evaluate to?

Key points

  • In JavaScript, `undefined` and `null` are considered equal when using the loose equality operator `==`.
  • The loose equality operator `==` does not consider the type of the operands.
  • It's important to distinguish between strict equality `===` and loose equality `==` in JavaScript.

Ready to go further?

Related questions