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

travis halarewich
travis halarewich
9,165 Points

token does not show up when game is loaded in browser

I know it must be something so simple that I am missing but for the life of me I can't seem to find where the issue is. https://teamtreehouse.com/workspaces/41499920# is the url to my workspace. I'm not getting any errors or issues when loading the app in the browser and looking in the dev tools console.

Steven Parker
Steven Parker
231,141 Points

You can't share a direct URL to your workspace, it's temporary and only exists while you are using it.
But you can use the snapshot function in the workspace and provide the link to that.

travis halarewich
travis halarewich
9,165 Points

Thank you for letting me know that! I didn't think it would work but wasn't sure how to share my code from my editor! https://w.trhou.se/hctfry1px4 this is my snap shot. Thanks again Steven!

1 Answer

Steven Parker
Steven Parker
231,141 Points

One line 30 of Game.js, the call to "drawHTMLToken" is missing the parentheses at the end:

        this.activePlayer.activeToken.drawHTMLToken;    // as in snapshot
        this.activePlayer.activeToken.drawHTMLToken();  // fixed
travis halarewich
travis halarewich
9,165 Points

Thank you! I knew it was something small, but after staring at the code for a couple hours I was just blind to it!