Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript and the DOM (Retiring) Making Changes to the DOM Appending Nodes

Aaron Noble
Aaron Noble
6,559 Points

I have an Uncaught TypeError: I need help on

I have an Uncaught TypeError: that I looked up on stack overflow but didn't see how any of those solutions applied to my code. Could you please look at my Snapshot and see what I am missing. Thank you, Aaron !

https://w.trhou.se/rhm95e470u

1 Answer

In your html the b in button of your class name is lowercase

<button class='addItembutton'>Add Item</button>

However in your javascript the b is uppercase

const addItemButton = document.querySelector('button.addItemButton');
Aaron Noble
Aaron Noble
6,559 Points

Nice call. I hate myself when I do that. Thanks again