JavaScript JavaScript and the DOM Making Changes to the DOM Styling Elements

Amanda Poetker
Amanda Poetker
Full Stack JavaScript Techdegree Student 3,185 Points

When I open this workspace and preview the page I get an error right away in console.

The error is:

Uncaught TypeError: Cannot set property 'title' of null app.js:9

I've checked this code against the video example several times and it all appears to be correct, but I keep getting this error.

KRIS NIKOLAISEN
KRIS NIKOLAISEN
Pro Student 50,936 Points

That is odd since the video's workspace has no code in app.js. Can you post the code you have (both index.html and app.js)?

1 Answer

Amanda Poetker
Amanda Poetker
Full Stack JavaScript Techdegree Student 3,185 Points

Thanks for checking in, there was a bit missing from my html file - the p class="description" wasn't there. All fixed.