We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b1929f commit 2262b32Copy full SHA for 2262b32
1 file changed
1-js/07-object-oriented-programming/06-prototype-methods/2-dictionary-tostring/solution.md
@@ -23,7 +23,7 @@ for(let key in dictionary) {
23
}
24
25
// 通过 toString 得到逗号分隔的属性值
26
-alert(dictionary); // "apple,__proto__"
+alert(dictionary.toString()); // "apple,__proto__"
27
```
28
29
当我们使用描述器创建一个属性,它的标识默认是 `false`。因此在以上代码中,`dictonary.toString` 是不可枚举的。
0 commit comments