<script>
function a(){
function b(){
function c(){
}
c();
}
b();
}
a();
// 作用域链
/**
*
* scope里存储的是作用域链
* */
// a defined a.[[scope]] -- > 0: Go
// a doing a.[[scope]] -- > 0: aAO
// 1: Go
// b defined b.[[scope]] -- > 0: aAO
// 1: GO
// b doing b.[[scope]] -- > 0: bAO
// 1: aAO
// 2: GO
// c defined c.[[scope]] -- > 0: bAO
// 1: aAO
// 2: GO
// c doing c.[[scope]] -- > 0: cAO
// 1: bAO
// 2: aAO
// 3: GO
</script>