25
/41
Event based programming: Callback
Once the event happen, the listener need to call an
Action function
The action function is called
Callback Function
Function triggered by another one.
In js:
[x].addEventListener(eventName, actionName);