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!
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 trial
KARTIK BHASIN9,299 Points
How to figure out the namespace here?
What should be the correct answer to this quiz question. I thought that Illustrator should be the answer but it is not as it shows a bummer when I put any of the four choices among Adobe, Illustrator, Canvas, Paint in the blank space and submit answer.
Seth Reece32,867 Points
In this case, Paint is the method, Canvas is the class, and Adobe.Illustrator is the namespace.
Enrique Munguía14,311 Points
When you have an identifier built with several words you need to interpret them from right to left, lets say you have a method call
The name with the parenthesis always is the method, and the method must be associated with a class. Both methods and classes names can contain only one word, so Boo is the method and Baz is the class, the rest must be the Namespace because Namespaces can be formed with several words separated by dots.