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

Tomasz Jaśkiewicz
Tomasz Jaśkiewicz
5,399 Points

A assigned a value "blue" to bgColor variable and value "FF9933" to textColor variable but it doesn't succeed.

As I mentioned it can't accept that.

2 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

The hexadecimal wll need a # character in front of it.

Check for Semi colons as suggested above.

And also make sure you're assigning the right value to the right property. That last one caught me out earlier today ;)

Tomasz Jaśkiewicz
Tomasz Jaśkiewicz
5,399 Points

Of course... I forgot about #. Thanks!

Have you checked that there's no ; at the end missing? Can you post your script?