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 previousElementSibling and insertBefore

Methee Saengow
Methee Saengow
5,474 Points

Sibling traversal objective

Can anyone give me the answer of below sibling traversal objective. It is really too difficult for me.

https://teamtreehouse.com/library/javascript-and-the-dom-2/traversing-the-dom/sibling-traversal

1 Answer

Steven Parker
Steven Parker
231,271 Points

Sometimes it can be helpful to look at the answers to other questions asked about the same topic, particularly when you're not sure even what to ask.

It can also help to skip ahead to the next step of the course and perhaps re-visit the challenge after you have finished the stage and/or reviewed some of the previous videos.

Methee Saengow
Methee Saengow
5,474 Points

Steven Parker Thank you very much i will try again looking for the questions from others in the same topic. I did try but found no same topic and also skip to other lessons. Just would like to study from the answer which i think it might be more understandable for me for this topic (study from the answer sometimes it can help me out when i totally dont understand some specific question).

Thanks again i will try harder to understand what teacher taught. Perhaps i have to slow down the video lesson

Steven Parker
Steven Parker
231,271 Points

The link I left you in the answer (the words in blue) will take you to a list of the other questions about this same challenge, and I got it by clicking on the "breadcrumbs" at the top of this page.

The "breadcrumbs" are the line with these words:
JavaScript > JavaScript and the DOM > Traversing the DOM > Using previousElementSibling and insertBefore