JS
文档
基础
堆栈内存
堆:16 进制内存地址
对象的属性名不重复,属性名都是字符串。obj['0'] == obj[0]。
闭包作用域
作用域、作用域链、执行上下文、堆内存、垃圾回收机制
GO: 全局对象 AO: 函数变量对象
变量提升 事件循环机制
面向对象
DOM、BOM
原型
编译机制
toString/toValue
ES6/ES7
面向对象
强制将函数转换为构建函数
function Interface(input, output, completer, terminal) {
if (!(this instanceof Interface)) {
return new Interface(input, output, completer, terminal);
}
// ...
}
1
2
3
4
5
6
2
3
4
5
6