const mod = function() { const mod1 = []; return { mod: mod1 }; }(); console.log(mod); const mod1 = function() { const a = []; const a1 = a; return { a }; }(); const a = mod1; const mod2 = function() { const b = []; const b1 = b; return { b }; }(); const b = mod2; const mod3 = function() { const c = []; const c1 = c; return { c }; }(); const c = mod3;