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 Foundations Variables Basics

Rajanand Ilangovan
Rajanand Ilangovan
3,226 Points

What is the task?

I don't understand the task. Could anyone tell me.?

Post the task text

1 Answer

Marek Ondrák
Marek Ondrák
15,177 Points

Page loads from top to bottom and myscript.js is executed at the place where <script src="myscript.js"></script> is. When you look in it, it uses document.getElementById('title'), but element with id="title" was not loaded yet, because it is in body below this script tad, so you have to move this script tag at the bottom of the page inside body element.

Rajanand Ilangovan
Rajanand Ilangovan
3,226 Points

Thanks! Actually i misunderstood the task 3. Now I resolved it. :)