JavaScript·Intermediate·Conceptual·1 min read
What does stopImmediatePropagation do?
Short interview answer
It prevents later listeners on the same node from running and also stops propagation to other nodes. It creates strong coupling and should be rare in application code because it can silently break unrelated behavior.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.