Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

mickey Odunikan
4,983 PointsI don't know what they are asking me to do
In the myscript.js file, on line 6, get the element by the id of "container"
<!DOCTYPE html>
<html lang="en">
<head>
<title> JavaScript Foundations: Variables</title>
<style>
html {
background: #FAFAFA;
font-family: sans-serif;
}
</style>
</head>
<body>
<h1 id="title">JavaScript Foundations</h1>
<h2>Variables: Basics</h2>
<div id="container">
This is a div with the id of "container"
</div>
</body>
</html>
<script src="myscript.js"></script>
/* JavaScript Foundations: Variables */
var bgColor = "blue";
var textColor = "#ff9933";
var container = document.getElementById('title');
container.style.background = bgColor;
container.style.color = textColor;
1 Answer

Geoff Parsons
11,667 PointsAs the line exists you're getting the variable by the id of "title", not "container".