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 trialmatt duBurg
5,712 PointsOOJS connect four game error
keep getting this error. my files, are identical with the final files provided.
"Uncaught ReferenceError: tokens is not defined at Player.createTokens (Player.js:17:13) at new Player (Player.js:7:32) at Game.createPlayers (Game.js:12:30) at new Game (Game.js:4:29) at app.js:1:14"
anyone else come across this?
1 Answer
Steven Parker
231,269 PointsI'd bet you're just overlooking a typo or other slight difference in the code. To make it possible for others to replicate your issue and help spot it, you can make a snapshot of your workspace and post the link to it here.
And we probably don't need it this time, but for future questions it's also helpful to provide a bit more info, like a link to the course page you're working on. Take a look at this video about Posting a Question.