箭头函数执行上下文在哪里?

Ame*_*icA 5 javascript ecmascript-6 arrow-functions

我正在阅读Execution Context in JavaScript一篇文章,我无疑明白什么是JavaScript.

function Foo() {
    // Execution context of Foo function is here, between curly braces
}
Run Code Online (Sandbox Code Playgroud)

我也读到了Arrow Functions它的属性,但是我遇到了一个问题:

箭头函数执行上下文在哪里?

const ArrowFoo = () => {
    // Where is ArrowFoo function execution context?
    // Is here? or the upper block scope?
    // Or global scope?
}
Run Code Online (Sandbox Code Playgroud)

Ber*_*rgi 7

箭头函数的执行上下文是一个函数执行上下文,就像所有其他函数一样。

同样foo,箭头函数的主体(大括号之间)包含在此执行上下文中执行的代码。