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 Interacting with the DOM Traversing the DOM Traversal Review

How do I pass this? 'Assign all children of UL to the Constant'

Ive tried multiple different appendChild(); methods and nothing seems to work.

cant I append all children with that method?

1 Answer

Steven Parker
Steven Parker
231,268 Points

I think you might have misread the instructions. They say: "Using DOM traversal, assign all children of the ul to the constant lis".

Note that it is saying to assign the children to the constant, not append them to another element.

Thank for your help. it was literally just 'ul.children'. which is funny to me considering Reggie didn't use that method once in this whole course haha.

Steven Parker
Steven Parker
231,268 Points

There are several ways to get that result, including methods shown in the videos.
But the one you used is probably the simplest. Good job!