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 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.