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

i don't understand what to do

I need help with starting this chalange

What have you tried to do so far?

3 Answers

I recommend you re-watch this video because the answer (and explanation) for that code challenge is in there.

im take the java script foundations challenge ,i'm on the first challenge , the task is to" Move the script tag where it'll get executed after the page loads." and i cant figure it out , i'm completely new to coding

I watched it 3 times I cant figure it out I copied the src="myscript.js"></script> from the html and then passed it on to the scrip it tells me: " Bummer! The last element in the body tag was a div tag. Move the script tag to the end of the document just before </body>. "

You don't copy, you cut the line 11 and you paste it just above the line where it says </body>. That means everything else on the page will be loaded before the script file starts loading.