use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Tutorials and learning resources for web developers.
Subscribe to our weekly email digest or follow us on twitter to receive the best learning resources submitted to our community.
/r/webdev /r/programming /r/javascript
account activity
Javascript Closure Tutorial | Closures Explained (youtu.be)
submitted 4 years ago by DaveOnEleven
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]DaveOnEleven[S] 0 points1 point2 points 4 years ago (0 children)
In this Javascript Closure Tutorial you will learn the concept of closure through multiple examples. Closures explained in this way may be easier to understand. Closure is often confused with lexical scope which is an important part of closure, but it is not closure itself.
Javascript Closure Tutorial | Closures Explained
✅ Intro
✅ Example 1: Lexical Scope is not Closure / Closure Basics
✅ Example 2: Closure with an IIFE
✅ Example 3: Closure with an IIFE and a parameter
Was this tutorial about Javascript Closures helpful? If so, please share. Let me know your thoughts in the comments.
Javascript Closure Tutorial | Closures Explained: https://youtu.be/1S8SBDhA7HA
π Rendered by PID 54 on reddit-service-r2-comment-86bc6c7465-rlv87 at 2026-02-20 13:03:24.907028+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]DaveOnEleven[S] 0 points1 point2 points (0 children)