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

Where does const come from???

Hi,

I'd like to know where does const come from? What is it? A variable??? It's the first time I heard about it!!! Is there a lesson where some teacher spoke about it?? Thanks

6 Answers

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

Luca Di Pinto — sorry about that. We had some production delays on the new Defining Variables with let and const. But it's out now, and I've added a link in the teachers notes for that course.

Hi Luca,

Check the Teacher's Notes below the video. It has a link to the ES-2015 course.

https://teamtreehouse.com/library/let-and-const

Don't you think these courses are a little bit bad structured? "JavaScript and the Dom" is a beginner course while "Introducing ES2015" is an intermediate course. I think that to understand the variable CONST i would not have to jump to an intermediate course to learn about it and then jump back to a beginner course, don't you think??

ywang04
ywang04
6,762 Points

For now, you can just think "const" is another key word like "var". Then continue to learn the following sections for this course. :)

Thanks a lot Dave McFarland!!!

Sorry Dave, I have just seen that caption is missing! Please can you provide to insert them? Thanks again

Dave McFarland
Dave McFarland
Treehouse Teacher

Hi Luca Di Pinto

The captions are being created right now -- it takes a couple of days. Sorry for the inconvenience.