摘要:
第二章,作用域由一系列的bubbles组成。每一个都代表了一个container或bucket,装着被声明的identifiers(variables, functions)。这些bubbles相互嵌套。这种嵌套是在开发阶段写完的。 什么制造了一个新的bubble? 只是函数吗?其他的JS结构可以创 阅读全文
摘要:
2种主要的models for how scope work. 最普遍的是Lexical Scope. 另一种 Dynamic Scope。(在Appendix a中介绍。和Lexical Scope 进行对比) Lex-time lexical scope is scope that is def 阅读全文
摘要:
Content Appendix: Chapter1: What is Scope? In fact, the ability to store values and pull values out of variables is what gives a program state. 背后的问题: 阅读全文