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 trial

JavaScript JavaScript and the DOM (Retiring) Getting a Handle on the DOM A Simple Example

Aileen C
Aileen C
3,334 Points

Well Gill, You never explained what a "const" was. I went through JS Basics and Loops... What's up with that?

I very much prefer the other instructor :(

1 Answer

Steven Parker
Steven Parker
229,645 Points

The "const" isn't unique to DOM traversal, which may be why it wasn't specifically explained in this course. It's just a way to declare a variable that cannot be changed.

But you might enjoy Getting Started With ES2015 or Introducing ES2015, where it will be explained along with a lot of other cool stuff.

joshua martin
joshua martin
4,698 Points

Should we go through ES2015 course before going through the DOM course? I didn't think it was necessary, but I dont want to not understand what the code is doing if I dont know the newer features of ES2015

Steven Parker
Steven Parker
229,645 Points

I don't think it's absolutely necessary for this particular course, but if you're not familiar with the newer syntax and functionality at all, you'd probably benefit by taking one of the courses I mentioned at your first opportunity.

joshua martin
joshua martin
4,698 Points

Awesome, thanks so much!