JS Built-ins
EventTargetbeginner

EventTarget Constructor β€” instanceof check

πŸ“– Usage Example
const et = new EventTarget()
et instanceof EventTarget  // β†’ true

EventTarget is the base class for objects that can receive events.

EventTarget

EventTarget is the base class for all objects that can receive DOM events. You can instantiate it directly with new EventTarget().

Challenge: Confirm new EventTarget() is an instance of EventTarget.

πŸ’‘ Hints (1)
  • β€’ EventTarget is the base class for all DOM event-capable objects