Animations
API
Arrays
Async
Basics
Challenges
Classes
Console
Dates
Debugging
DOM Elements
DOM Methods
DOM Properties
Event Listeners
Flow Control
Forms
Functions
Global Functions
JSON
Keywords
Libraries (3rd party)
Math
Modules
Objects
Snippets
String
Types
Widgets
Window Object
A JavaScript can be executed when an event occurs, like when a user clicks on an HTML element. To execute code when a user clicks on an element, add JavaScript code to an HTML event attribute.
https://www.w3schools.com/jsref/dom_obj_event.asp
Examples:
Methods are actions that can be performed on objects. Methods are stored in properties as function definitions.
http://www.w3schools.com/js/js_htmldom_events.asp