Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion questions/describe-event-bubbling/en-US.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ productList.addEventListener('click', handleBuyClick);
function handleBuyClick(event) {
// Check if the clicked element is a button within the list
if (event.target.tagName.toLowerCase() === 'button') {
console.log('Buy button clicked for item:', event.target.textContent);
console.log('Buy button clicked for item:', event.target.id);
}
}
```
Expand Down