Earid

JavaScript

addEventListener()

The addEventListener() method attaches an event handler to the specified element. Syntax Parameter Description event Required. A String that specifies the name of the event. Note: Do not use the “on” prefix. For example, use “click” instead of “onclick”. For a list of all HTML DOM events, look at our complete HTML DOM Event Object

addEventListener() Read More »

JavaScript Array Object

Array Properties Property Description length Sets or returns the number of elements in an array. prototype Allows you to add new properties and methods to an Array object. Array Methods Method Description concat() Merge two or more arrays, and returns a new array. copyWithin() Copies part of an array to another location in the same

JavaScript Array Object Read More »