JS Built-ins
EventTargetbeginner

EventTarget β€” instance is truthy

πŸ“– Usage Example
new EventTarget() === new EventTarget()  // β†’ false

Each EventTarget() call creates a new independent instance.

EventTarget β€” truthiness

new EventTarget() returns an object, and all objects are truthy in JavaScript.

Challenge: Confirm that new EventTarget() is truthy.

πŸ’‘ Hints (1)
  • β€’ Objects are always truthy in JavaScript β€” only falsy primitives like null/undefined/0/"" are falsy