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 get this question, any help?

In the myscript.js file, on line 6, get the element by the id of "container"

3 Answers

Stone Preston
Stone Preston
42,016 Points

you need to pass in the name of the id to the getElementById function.

currently line 6 is:

var container = document.getElementById('title');

which sets container to the element with the id of "title"

however the element you want has an id of "container", not "title"

var container = document.getElementById('container');

Thanks! That question made so little sense to me, too! :-)

ok Thanks

I still don't get it lol

Go ahead and post your code and we can try to give you a hand! :smile: