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 Using parentNode to Traverse Up the DOM

The DOM difficulty???

Hi everyone, Is the DOM the hardest to understand within Front End Web Development in this course here on treehouse.
I heard Guil a while back say something about the DOM that the hardest is behind us now, (words to that effect), is this true?

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

Learning to use the DOM is undoubtedly difficult as is most things to do with programming I'm afraid.

Just looking at the course spec, Guil may have been referring to Traversing to different elements in the DOM with such methods. Some methods are very descriptive so they do what they say. You can traverse to find the previousElement sibling of the one you originally target.

But generally the main takeaway of the course is that there will often times be gotcha's that you'll have to learn to get around while trying to use DOM methods.