{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc)
{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) ☛
{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) ☛
{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) ☛
{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) ☛
{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) ☛
{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) ☛
{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) ☛
{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) ☛
{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) ☛
{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) ☛
{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) ☛
{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) ☛
{ var b = 10; function innerFunc() { var c = a + b; } innerFunc(); } outerFunc(); Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) Lexical Scope (outerFunc) Global Scope Lexical Scope (innerFunc) ☛
var a, b; // do something... } function something() { console.log(a); // ?????????????? console.log(b); // ?????????????? let a, b; // do something... }
var a, b; // do something... } function something() { console.log(a); // ?????????????? console.log(b); // ?????????????? let a, b; // do something... }
control is transferred from the executable code associated with the currently running execution context to executable code that is not associated with that execution context
context (MPCBM$PEF 'VODUJPO$PEF &WBM$PEF From the executable code associated with the currently running execution context to executable code that is not associated with that execution context.