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 trialMichael North
2,561 PointsDont understand
I have been going through this course not sure what all the numbers in the parameters mean. I was hoping that it'll come up later, but it never did. Can I please get help on this topic.
1 Answer
Steven Parker
231,271 PointsI got your request.
The parameter meanings vary with what they are used on.
For creating a Map, the parameters determine the width and height of the map that will be created.
For a Point or a MapLocation, the parameters determine the location on the map (as "x" and "y" coordinates) that these items are associated with.
Does that make it clear?
Michael North
2,561 PointsMichael North
2,561 PointsI defenitly understand more clearly now, but what unit is the program using?
Steven Parker
231,271 PointsSteven Parker
231,271 PointsThese values are just unitless counts. I suppose you could say the units are "number of cells".