Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Welcome to Getting Started With ES2015 1:01
- Declaring Variables in JavaScript 1:20
- Creating Unchanging Variables With const 4:10
- Using Constants with Arrays and Objects 2:44
- Review creating variables with const 5 questions
- Defining a Variable with let 2:48
- Using let with for Loops 2:25
- Reviewing let and const 1:00
- Review let and const 5 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Using the var keyword in for loops can cause unexpected behavior. In this video we'll see how let solves those issues.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Damien Bactawar
8,549 Points2 Answers
-
John Cannon
Full Stack JavaScript Techdegree Student 3,161 Points2 Answers
-
Nir Barzilai
3,029 PointsIn defining var instead let, why variable -i- gets 10 and not 9?
Posted by Nir BarzilaiNir Barzilai
3,029 Points4 Answers
-
Maxim Melnic
4,178 Points5 Answers
-
Hadi Farhat
10,678 PointsShouldn't const button throw an error after the first loop because It's already been defined?
Posted by Hadi FarhatHadi Farhat
10,678 Points2 Answers
-
Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,638 Points3 Answers
-
Bass Gad
Full Stack JavaScript Techdegree Student 466 Points9 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up