JavaScript makes it possible to execute functions when a certain event occurs within the DOM of our HTML. This event can be a “click” on a certain element (usually a button), the selection of an “option” within a combo, or even the loading (load) of the page.
In addition, another interesting and widely used feature in JavaScript is the possibility of creating elements (inputs, divs, links or any other type of HTML component) dynamically (also through events).