Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
221,070 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
221,070 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