EventTarget.addEventListener(). Registers an event handler to a specific event type on the element. Element.closest(). Returns the Element, descendant of this element (or this element itself), that is the closest ancestor of the elements selected by the selectors given in parameter.
Type of Roofing Material. After roof size, the type of roofing material is the most significant factor in determining the average roof replacement cost. Asphalt shingles are the least expensive roofing material, with starting costs at under $1,000. Metal roofing is the most expensive and can cost up to $30,000-$40,000 for large roof replacements. The quality of the roofing material will also determine the cost of roof replacement. For example, asphalt shingles can cost anywhere from $50 for average quality to $150 or more for the highest quality (per square).
People in the Midwest might pay $7,000 for a new roof. So location has a lot to do with it. According to Remodeling magazine's 2008 Cost vs. Value Report, homeowners in the United States pay $18,825 on average to replace a roof. This number is based on the use of asphalt shingles. Metal and tile roofs will cost more than this on average.