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 Overview

Quinneisha Brooks
Quinneisha Brooks
3,324 Points

I'm in code school currently and const and let have never even been brought up. Is this video still valid in 2017?

I just wanted to clarify that the const and let rule is still a thing in year 2017. I am a current code school student and I've only been taught to use var. Not until joining Treehouse have I even heard of const and let.

4 Answers

andren
andren
28,558 Points

Yes, it is. They are not outdated terms, rather quite the opposite. They were added in ES6 / ES2015 which is essentially the most recent revision of the JavaScript language.

Treehouse redid a lot of their JavaScript courses just a couple of months ago. ES6 is still relatively new so most JavaScript courses have not been updated to cover it yet.

Like andren said, no, this isn't outdated. It's in fact a brand-new feature added in ES6. You can learn about let and const on this workshop.

I seems that your school is rather outdated :D

Tommaso Bufano
Tommaso Bufano
13,821 Points

Side note, I've started the iOS course and they use "let" as well. It seems to be the trend as the "modern" way to declare variables.

Seth Roope
Seth Roope
6,471 Points

let is how you declare a constant in Swift.

Abraham Juliot
Abraham Juliot
47,353 Points

Let in Swift has different meaning--it's a constant.

Let in JavaScript is a non-constant variable with block level scope.