20200226
Plan
Notes
- string
a = "abc";
b = new String("abc");
typeof a; // "object"
typeof b; // "string"
- 改写 obj.toString 的结果
a = {
[Symbol.toStringTag]: "hello"
};
a.toString(); // "[object hello]"
- Symbol 不是对象
- document.create
More
感觉《你不知道的 js 这本书》中的一些描述不是很正确。
- Symbol.create === undefined
- Array.prototype 不是空数组