Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
- 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
Now that we know what a closure is, let's use it to solve the problem in the first video. As you'll see, we can not only reduce our dependency on global variables, but we can also make our code much more compact as well.
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-
jack twist
Full Stack JavaScript Techdegree Student 18,575 Points2 Answers
-
Amy Tomey
12,847 Points0 Answers
-
Michael Cook
Full Stack JavaScript Techdegree Graduate 28,975 Points1 Answer
-
Michalis Efstathiou
Full Stack JavaScript Techdegree Student 8,605 PointsClosures - Still unsure why the counter resets
1 Answer
-
Marissa Smith
16,609 Points2 Answers
-
brandonlind2
7,823 PointsOuter closure function doesn't reset but inner one does?
Posted by brandonlind2brandonlind2
7,823 Points1 Answer
-
Leon Segal
14,754 Points1 Answer
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