// Challenge: // 1. Select h1 and add a click event listener. // Log the text from the element to the console.
// If you're not sure how to get text, feel free to check out hint.js
// 2. Add the same functionality to all the elements displayed // in Scrimba web browser. Finally, try to trigger the event when you // hover the mouse over the elements, instead of when clicking on them
1
2
3
4
5
6
7
8
9
10
11
// Challenge:
// 1. Select h1 and add a click event listener.
// Log the text from the element to the console.
// If you're not sure how to get text, feel free to check out hint.js
// 2. Add the same functionality to all the elements displayed
// in Scrimba web browser. Finally, try to trigger the event when you
// hover the mouse over the elements, instead of when clicking on them