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 triallore lore
86 Pointsthis.board.columns
Hello, in the Ashley's solution you can see that she put inside each for that x <this.board.columns. But I don't remember and I couldn't find neither the board element created from the Board class. So, I don't understand what board means and where it was created.
Thanks
1 Answer
Andrii Kodola
Full Stack JavaScript Techdegree Student 16,870 PointsHi,
It's been created in Game class constructor.
class Game {
constructor() {
this.board = new Board();
this.players = this.createPlayers();
this.ready = false;
}
}
It is board object created using Board class from Board.js file.