JavaScript

Step 7: Add the following to line 3:
myButton.addEventListener(`click`, doSomething)
The method addEventListener activates the button. It takes in two things, which are called arguments. The first argument `click` specifies that something should happen when the button is clicked. The second argument doSomething specifies what should happen when the button is clicked. The next several steps will be implementing doSomething.
Last step Next step