JavaScript JavaScript and the DOM 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
Jonathan Grieve
Treehouse Moderator 89,164 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.