Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Interacting with the DOM Responding to Events Listening for Events with addEventListener()

judygrayland
judygrayland
8,647 Points

Code missing from Teacher's Notes

In minute 03:18 Reggie tells us to copy and paste the code from the Teacher's notes but there isn't any code there. It's very brief, so not hard to type out ourselves, but still, here it is ;)

document.addEventListener('copy', (event) => { alert('Please be sure to credit the author') });

Thank you :)

1 Answer

Thank you for pointing this out judygrayland , we will get that snippet added to the Teacher's Notes, asap!