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
Let's package our middleware into a module. We'll also make it able to multiply our user's input by any number we wish.
Closures
To learn more about JavaScript closures, check out this Treehouse workshop. We even peek inside a piece of third-party Express middleware at the end!
You can also check out MDN's article on closures.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated 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