JavaScript·Beginner·Conceptual·1 min read
What does the once listener option do?
Short interview answer
The browser removes the listener automatically after its first invocation. This makes single-use ownership explicit and avoids manual cleanup for that path.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.