let data = [ { player: "Jane", score: 52 }, { player: "Mark", score: 41 } ]
// Fetch the button from the DOM, store it in a variable // Use addEventListener() to listen for button clicks // Log Jane's score when the button is clicked (via data)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
let data = [
{
player:"Jane",
score:52
},
{
player:"Mark",
score:41
}
]
// Fetch the button from the DOM, store it in a variable
// Use addEventListener() to listen for button clicks
// Log Jane's score when the button is clicked (via data)