mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-30 02:46:52 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
306 B
306 B
in event handlers
In an event handler attached to a DOM element, this refers to the element that received the event. For example, in a click handler, this is the button or element that was clicked. Arrow functions do not have their own this, so they inherit it from the surrounding scope instead.