Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Preview
Start a free Courses trial
to watch this video
You've learned a lot so far, and you're ready to write a JavaScript feature on your own. In this challenge, you'll implement a "down" button for each list item that moves the item one position downward in the list. This challenge is a great way to practice what you've learned so far!
We've covered a great deal of material so
far.
0:00
And you're ready to write
a JavaScript feature on your own.
0:02
Earlier, when you learned or
read about previous element sibling,
0:05
you may have noticed that there's
also a next element sibling property.
0:08
And it works in the way you'd expect.
0:12
It returns the element immediately
following the referenced element.
0:14
Now, I'd like to challenge you to use this
property to implement a down button for
0:18
each list item just as we did
earlier with the up button.
0:22
So in other words,
0:25
the down button will move the item
one position downward in the list.
0:26
This challenge is a great way to
practice what we've learned so far.
0:30
And in the next video,
I'll show you how I implemented it.
0:33
Good luck.
0:36
You need to sign up for Treehouse in order to download course files.
Sign up