Question d’entretien chez LinkedIn

What about events? addEventListeners? e.target?

Réponses aux questions d'entretien

Utilisateur anonyme

8 janv. 2019

Study about this subject....you need to be very strong in events.- in which element was clicked etc.

Utilisateur anonyme

29 janv. 2025

Event represent some sort of action or occurence that happens in the system. Such button click, page load and so on, addEventListener() - These are called event handlers. These are attached to elements that experience this event. It takes 3 parameters - the even type like 'click', the function to be executed after event occurs and optional parameter - True/False for event capturing or bubbling EventListeners stay attached unless explicitly removed. So they are memory heavy. The 'event' object is automatically passed to event handler functions and contains information about the event that occurred. It provides various properties and methods to interact with and control the event. event.target.value refers to the current value of the element that triggered the event.