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 trial

JavaScript DOM Scripting By Example Adding and Removing Names Removing Names

Justin Wheeler
Justin Wheeler
4,921 Points

Code not working due to 'ul' changing to a global scope.

I spent an hour trying to find the issue. I finally DL'ed the final code for this project and ran it in workspace and got the same error message. So it wasn't my fault, this time. LoL!!

app.js:25 Uncaught TypeError: Cannot read property 'appendChild' of null at HTMLFormElement.form.addEventListener (app.js:25)

Steven Parker
Steven Parker
229,744 Points

Please use the "snapshot" function in the workspace, and post the link it gives you here so we can see your code.

Dane Parchment
Dane Parchment
Treehouse Moderator 11,075 Points

Can you provide the code for us to help you debug your issue?

1 Answer

Can you please show us your code? so it will be easier for us to help you. Happy Coding! - Chan