Explaining Closures in JavaScript

Published: 23 September 2025
on channel: Алексей Волков про JavaScript
914
like

🔥 Grokkai JavaScript.
https://volkov.ru.net/?utm_source=you...
promo code: YOUTUBE

📚 References
➖ Standard ECMA-262, 2nd Edition - August 1998 // Ecma International. URL: ecma-international.org/wp-content/uploads/ECMA-262_2nd_edition_august_1998.pdf (accessed: 03.09.2025).
➖ Standard ECMA-262, 16th Edition - June 2025 // Ecma International. URL: ecma-international.org/wp-content/uploads/ECMA-262_16th_edition_june_2025.pdf (accessed: 03.09.2025).
➖ ECMAScript 5.1 Annotated Specification // Wayback Machine. URL: web.archive.org/web/20210228100835/https://es5.javascript.ru/x10.html#x10.3 (accessed: 03.09.2025).

👨‍💻 Code from the video:
function hi() {
function say() {
var name = "John";
let middleName = "J.";
{
let surname = "Doe";
console.log(`Hi, ${name} ${middleName} ${surname}`);
}
}
return say();
}
hi();

🙏 Thanks
   • Объясняя замыкания в JavaScript  
https://www.youtube.com/@AsForJS/videos

🗂️ Free tutorials on the channel:
🪝 React hooks under the hood:    • Я месяц искал, как работают хуки React под...  
☑️ Key in lists without myths:    • Key в списках. Без мифов и секретов. Глубо...  
⌨️ macOS Terminal:    • Кастомизация стандартного терминала macOS  

🔴 Timestamps:
▶ 00:00 | Introduction
▶ 00:06 | Murych's comment
▶ 00:27 | FunArg's problem
▶ 01:01 | Bash Approach
▶ 01:14 | JavaScript Approach
▶ 01:18 | Example
▶ 01:34 | Context Stack
▶ 01:55 | Executing global()
▶ 02:44 | Executing hi()
▶ 03:27 | Executing say()
▶ 04:13 | Executing the {...} block
▶ 04:58 | Defining a Closure
▶ 05:21 | Acknowledgments

#AlexeyVolkov #JavaScript #React #Programming #Interview #DeepAnalysis #WebDevelopment #CareerGrowth


On this page of the site you can watch the video online Explaining Closures in JavaScript with a duration of hours minute second in good quality, which was uploaded by the user Алексей Волков про JavaScript 23 September 2025, share the link with friends and acquaintances, this video has already been watched 914 times on youtube and it was liked by like viewers. Enjoy your viewing!