Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

e parameter in javascript

/*
 * `e` is often the name given to the parameter passed
 * into the callback function of an event listener ('e'
 * being short for 'event'). `e` enables access to
 * information about an event.
 */
element.addEventListener("eventname", function(e) {
	console.log(e.type);
});
 
PREVIOUS NEXT
Tagged: #parameter #javascript
ADD COMMENT
Topic
Name
5+8 =