You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function (x) {
return function (x, y) {
return function (w, z) {
return function (w) {
return x + y + z
}
}
}
}
"When evaluating x + y + z, JavaScript will find x and y in the great-grandparent scope and z in the parent scope. The x in the great-great-grandparent scope is ignored, as are both ws. When a variable has the same name as an ancestor environment’s binding, it is said to shadow the ancestor."
Above should be grandparent instead of great-grandparent and great-grandparent instead of great-great-grandparent.
The text was updated successfully, but these errors were encountered:
function (x) {
return function (x, y) {
return function (w, z) {
return function (w) {
return x + y + z
}
}
}
}
"When evaluating x + y + z, JavaScript will find x and y in the great-grandparent scope and z in the parent scope. The x in the great-great-grandparent scope is ignored, as are both ws. When a variable has the same name as an ancestor environment’s binding, it is said to shadow the ancestor."
Above should be grandparent instead of great-grandparent and great-grandparent instead of great-great-grandparent.
The text was updated successfully, but these errors were encountered: