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 trialShifat Kabir
5,443 PointsAdd item button isn't working...
My console showing that error: Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'. at attachListItemButtons (app.js:17) at HTMLButtonElement.<anonymous> (app.js:75)
2 Answers
KRIS NIKOLAISEN
54,971 PointsIn each of your appendChild methods (up, down, remove) you want to append the element. You do this without quotes. For example:
li.appendChild(up)
instead of:
li.appendChild('up')
Shifat Kabir
5,443 PointsThank you KRIS NIKOLAISEN. But i know this but how did i make that kind of mistake..... lol :p