【发布时间】:2018-11-05 09:48:29
【问题描述】:
我正在阅读一篇Execution Context in JavaScript 的文章,我无疑明白JavaScript 中的执行上下文是什么。
function Foo() {
// Execution context of Foo function is here, between curly braces
}
我还阅读了Arrow Functions 及其属性,但我遇到了一个问题:
箭头函数执行上下文在哪里?
const ArrowFoo = () => {
// Where is ArrowFoo function execution context?
// Is here? or the upper block scope?
// Or global scope?
}
【问题讨论】:
标签: javascript ecmascript-6 arrow-functions