JS Built-ins
AbortControllerbeginner

AbortController β€” signal.aborted starts false

πŸ“– Usage Example
const ac = new AbortController()
ac.abort()
ac.signal.aborted  // β†’ true

Call abort() to cancel the associated operation and set signal.aborted to true.

AbortController signal.aborted

A newly created controller has not been aborted, so signal.aborted is false.

Challenge: Verify that new AbortController().signal.aborted is false.

πŸ’‘ Hints (1)
  • β€’ Before calling abort(), the signal.aborted property is always false