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 JavaScript and the DOM (Retiring) Traversing the DOM Traversal Review

I haveI cant seem to get the right answer , tried parentNode(div);

Quiz question 5 of 5 Traversing the Dom/ traversal review

2 Answers

Steven Parker
Steven Parker
231,261 Points

"parentNode" is a property, it's not a method that would take an argument.. So to access it on a variable named "div" you would use "div.parentNode".

Also, when asking about questions, always quote the question itself as the order they are asked can be scrambled each time.

thank you so much