JS Closure
Youtube Twitter
https://youtu.be/V_Q2t_aHCKU
Closure gives you access to an outer functions scope from inner function.
function outer() {
const name = 'test';
function inner() {
// 'name' from outer function is accessible inside inner ...
vkglobal.hashnode.dev1 min read