From the course: JavaScript: Enhancing the DOM
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Challenge: Animal tree traversal
From the course: JavaScript: Enhancing the DOM
Challenge: Animal tree traversal
(upbeat music) - [Instructor] Let's put your new skills to the test with a fun exercise. On a webpage, you'll find a nested structure of animals in a family tree format. You can start working on this exercise by checking branch O three, underscore O four, in there you'll find this index.html which is linked to this script.js. And your task is to find the parent elements of a cat. List all the children of the cat's parent, and identify the cat's parents' next sibling. This should take you around 10 to 15 minutes. Please mind I'm not a biologist, even though I tried my best to get it right of course. The focus here is to get you some practice in navigating the dump tree. Enjoy your journey through the animal family.