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 Getting the First and Last Child

Daniel Springer
PLUS
Daniel Springer
Courses Plus Student 5,090 Points

Traversing the DOM difficulties

Hi Everyone,

I'm a bit gutted, I have gone through this section "Traversing the DOM" two times now and I still don't feel I grasp all the elements fully. Not sure if I should continue with the tech degree or re-do the section again?

Can you guys recommend something?

Matthew Long
Matthew Long
28,407 Points

The sibling, parent, next child, previous child, etc traversing I honestly don't use that often. Also, it is much easier when using jQuery. I say if you've already gone through this section twice you should be able to move on. If you reach something at a later time that causes you problems then you can always come back to this section.

3 Answers

Agreed with Matthew, I was at first overwhelmed with all of the steps required in JavaScript DOM manipulation. This was on top of learning what exactly the DOM was, so my learning was being muddled between the two.

However, once I got entirely comfortable with jQuery, the concepts became a lot easier to grasp because I was purely learning how the JavaScript DOM works and not DOM in general.

Steven Parker
Steven Parker
231,268 Points

Perhaps you might find this blog post and this episode of The Treehouse Show helpful. They both give tips for learning effectively.

Daniel Springer
PLUS
Daniel Springer
Courses Plus Student 5,090 Points

Thanks for your answers Steve and Matthew. I will move on for now and take the advise in the blog post in consideration.