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 Traversing the DOM Traversal Review

Nancy Melucci
PLUS
Nancy Melucci
Courses Plus Student 36,158 Points

"removeMe Question" - nothing works

I can't finish the course because nothing I do for this question works. I can't give a question number because the quiz keeps shuffling the order but it basically does this.

var removeMe = document.querySelector('.remove_me'); var parent = ?

and asks how to Traverse to the parent of removeMe. I've tried removeMe.parentNode; removeMe.parentElement; both of which should work according to the internet hive mind.

What am I doing wrong?

Thanks. T

1 Answer

The quiz accepts removeMe.parentNode without a semicolon.