Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Defining Variables with let and const!

- 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-
MIHA W.LEE
PHP Development Techdegree Graduate 25,452 Points1 Answer
-
vamosrope14
14,932 Points2 Answers
-
Axel Perossa
13,930 Points1 Answer
-
Philip Kroupoderov
Front End Web Development Techdegree Graduate 21,641 PointsQuestion about the less < comparison
1 Answer
-
Sahan Balasuriya
10,115 Points1 Answer
-
Sal Mike
71 Points4 Answers
-
Farhad Lipo
51 Points4 Answers
-
Nicholas Gaerlan
9,501 Points2 Answers
-
Jaroslav Kramar
1,534 Points0 Answers
-
olu adesina
23,007 PointsDont understand how the buttons.length is used in this example
Posted by olu adesinaolu adesina
23,007 Points3 Answers
-
Unsubscribed User
3,436 Points3 Answers
-
Luca Di Pinto
8,051 Points4 Answers
-
Kieran Corcoran
11,188 Points4 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