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

Bummer! You haven't set the colors yet.

var bgColor = "blue"; var textColor = "#FF9933";

I try this code, however the code still runs as an error.

3 Answers

Erik McClintock
Erik McClintock
45,783 Points

Paulius/Logan,

Just to clarify, you'll want to put the script tags BEFORE the closing body tag, as follows:

<!doctype html>
<html>

<head>
<title>Here's My Title</title>
</head>

<body>

<p>Here is some body content for my webpage.</p>

<script src="myscript.js"></script>
</body>
</html>

Erik

Logan R
Logan R
22,989 Points

I tried it just now and it worked so it might of just been a temporary bug. I would try refreshing the page and retrying the challenge.

Where do you put the <script></script> tags in the page?

Logan R
Logan R
22,989 Points

Just before the </body> and </html>