/** * Challenge: method chaining! * * 1. Select the button in the DOM and add an event listener to it without saving the DOM element as a separate variable. I.e. "chain" the `addEventListener` on after your `getElementById()`(When clicked, log "Clicked" to the console) * - I realize this might feel like busywork, but my intent will make sense soon * * 2. Upcoming... */
6
7
8
9
10
1
2
3
4
5
*
* 2. Upcoming...
*/
/**
* Challenge: method chaining!
*
* 1. Select the button in the DOM and add an event listener to it without saving the DOM element
as a separate variable. I.e. "chain" the `addEventListener` on after your `getElementById()`(When
clicked, log "Clicked" to the console)
* - I realize this might feel like busywork, but my intent will make sense soon