A tutorial for advanced JavaScript DOM manipulation. We will use the Drum project to learn this section. Start by linking up the HTML with the CSS and JavaScript file.
In order to detect events on the page, we need to add event listener(s). We can create a function that will be called when a button is clicked.
// add a click event listener to the 1st button