JS7 ClassNotes
JS7 ClassNotes
Events are fired to notify code of "interesting changes" that may affect code execution.
node.event = ( ) => {
//handle here
}
example
btn.onclick = ( ) => {
console.log(“btn was clicked”);
}
Event Object
It is a special object that has details about the event.
All event handlers have access to the Event Object's properties and methods.