Contexts create subdivided \"containers\" within domains for objects with special needs (or in the case of objects that don\'t have special needs, the d开发者_Go百科efault context is used).
function b() { function a() { console.log(x); } a(); const x = 10; } const x = 20; b() If I understand lexical scoping and execution context correctly, when function a() is invoked, it should ha