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.

JavaScript Object-Oriented JavaScript: Challenge Making the Game Interactive playToken() Method Solution

Casey Dixon
Casey Dixon
8,920 Points

Why is my token not visible?

Working through this project I have been careful to always check my code before moving on to the next step. I have no errors detected in my text editor, nor when I run my code, yet the actual token does not appear on screen as the instructor's does. I have compared my code to the provided code up to this step and am still unable to see any difference. Would anyone have an idea why the token object does not appear on screen?

3 Answers

Hi Casey

Can you please copy and paste anything you see in the console on your chosen browser

Thanks

Casey Dixon
Casey Dixon
8,920 Points

That's just it; in the console nothing appears, so I don't really know where to look. Originally, I had some errors, but I fixed all that appeared and now nothing shows up in the console and everything seems to be working fine with the exception of this missing token object.

Gwynfor Hockridge
Gwynfor Hockridge
4,571 Points

I had a similar issue here - turns out I was using the British spelling of colour - not 'color' so the token did not have a background colour.