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 trialPeter Theroux
5,600 PointsButton Problems
'up', 'down', and 'add item' buttons do not work. Commenting out the if statements on line 48 allows 'up' to work and likewise with line with 'down', but not at the same time. The console gives an error at line 78. Link to worksheet: https://w.trhou.se/86y59l9ml9
2 Answers
Steven Parker
231,268 PointsYou just have a couple of typo/spelling errors:
- on line 46 there is "previousElementsSibling" (with an extra "s") instead of "previousElementSibling"
- on line 54 there is "nextElementsSibling" (also with an extra "s") instead of "nextElementSibling"
Peter Theroux
5,600 PointsThank you, Steven.