Event Phases in the DOM(Capturing, Target, Bubbling)
When you click a button, hover over an element, or submit a form, something powerful happens behind the scenes in the Document Object Model (DOM). JavaScript doesn’t just “run” the event—it follows a