Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Object-Oriented JavaScript: Challenge Building Constructor Methods and Generating Objects createTokens() Method Solution

Should i createToken = 21 ? if can't what exactly reason for this ? and what function num ?

i wondering about that for along time. anyone know this ?

Michael Williams
Michael Williams
Courses Plus Student 8,059 Points

I'm not quite sure I understand your questions here. Could you elaborate and give some context?

1 Answer

21 tokens for 1 player, means 42 tokens for 2 players which is tokens total. The only way to distribute 42 between columns and rows in a board is: 6x7 or 7x6 which is a standard for "four in a row".