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

JavaScript

Gareth Redfern
Gareth Redfern
36,217 Points

namespaced in Javascript

Can someone explain in simple terms what "namespaced" means when used in Javascript? Andrew talks about it in the Google Maps API lesson and I am not sure if it is covered in earlier lessons but I can't find it.

Thanks Gareth

3 Answers

Andrew Chalkley
STAFF
Andrew Chalkley
Treehouse Guest Teacher

Namespacing makes it possible to have similar named things but they don't clash.

If you wanted to create your own custom Marker object you don't need to worry that it's going to clash with Google Maps' Marker class because it has google.maps prepended to the beginning of it.

You can read up more on the [Wikipedia page](http://en.wikipedia.org/wiki/Namespace_(computer_science\))

Gareth Redfern
Gareth Redfern
36,217 Points

Ahh right I understand now thank you, are there any plans to explain these kind of terms in more detail in upcoming lessons?

Andrew Chalkley
STAFF
Andrew Chalkley
Treehouse Guest Teacher

We're always looking to add more things to our curriculum.

In terms of new content releases, our public roadmap is the place to check back to now and again so keep an eye out there for any expansions or refreshes to the JavaScript Foundations they'll be listed there.

But in the mean time if you have any questions about any of our courses feel free to post here in the forum and we'll help you in your learning.