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 Breaking on Events and Basic Stepping

Can't follow, can't click label, doesn't react the same way as the instructor shows..

I had trouble following from as soon as we get into controls in Sources ... I couldn't click the label and from what I understood, I tried to copy : const listItem = checkbox.parentNode.parentNode; into the console, but I am missing a step for sure.. the console it doesn't return the <li>..</li>, and as I step forward in Sources ,things don't change with that constant as it does in the video.

Please help. TIA for any advice.

Kind regards and Happy coding! Sandra

1 Answer

I had the same issue, and I think that DevTools has been updated since this video came out.

As for the problem with the <li>..</li> , notice the instructor doesn't copy the const declaration,, just this portion: listitem = checkbox.parentNode. Try this again and I'm certain the problem will be fixed.