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 JavaScript Basics Hello, JavaScript! JavaScript Challenge Solution

Kurt Coleman
Kurt Coleman
2,967 Points

script.js:10 Uncaught TypeError: Cannot set property 'textContent' of null at script.js:10

syntax error?

Kurt Coleman, in order for us to help do you mind sharing your JS code? This looks like you've most likely just typed something wrong in your code. Thanks!

1 Answer

Robert Manolis
STAFF
Robert Manolis
Treehouse Guest Teacher

Hi Kurt. Like Colton said, sharing your code can help in identifying the issue. But in the meantime, take a look at line 10 of your code. Whatever you're trying to set the textContent of is likely not what you think it is. Try logging that value out to the console to make sure it actually equals the DOM element that you're trying to update with the textContent property. :thumbsup: