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 trialCole Smith
Web Development Techdegree Student 13,802 PointsHow 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
231,275 PointsI 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.
Cole Smith
Web Development Techdegree Student 13,802 PointsCole Smith
Web Development Techdegree Student 13,802 PointsThank 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
231,275 PointsSteven Parker
231,275 PointsThere are several ways to get that result, including methods shown in the videos.
But the one you used is probably the simplest. Good job!