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 trialJonathan Grieve
Treehouse Moderator 91,253 PointsHelp with the render methods
Just a couple of quick questions about the last 3 instruction stages...
Firstly, just asking because I'm not sure if we're supposed to bed seeing the space
and token
objects on the screen now? My code has been updated to the solution but all I'm seeing right now is the #play-area
.
Also, we had an instruction to create a getter method for htmlToken() but no solution provided for it. Is that relevant?
get htmlToken() {
return token;
}
Thanks all. :)
1 Answer
Aidan Caddle
18,983 PointsYou need to use the "getElementById" here to identify the #id in HTML.
Jonathan Grieve
Treehouse Moderator 91,253 PointsJonathan Grieve
Treehouse Moderator 91,253 PointsThanks Aidan,
In the end, I worked out that the rendering needs to bed called in the startGame() method later on. Thanks for your response. :)