Skip to content

Commit 114c482

Browse files
committed
typo + add link to relevant chapter
1 parent 1b2d3e8 commit 114c482

File tree

1 file changed

+3
-1
lines changed
  • 1-js/07-object-oriented-programming/06-prototype-methods/2-dictionary-tostring

1 file changed

+3
-1
lines changed

1-js/07-object-oriented-programming/06-prototype-methods/2-dictionary-tostring/solution.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
The method can take all enumerable keys using `Object.keys` and output their list.
33

4-
To make `toString` non-enumerable, let's define it using a property descriptor. The syntax of `Object.create` allows to provide an object with property descriptors as the second argument.
4+
To make `toString` non-enumerable, let's define it using a property descriptor. The syntax of `Object.create` allows us to provide an object with property descriptors as the second argument.
55

66
```js run
77
*!*
@@ -27,3 +27,5 @@ alert(dictionary); // "apple,__proto__"
2727
```
2828

2929
When we create a property using a descriptor, its flags are `false` by default. So in the code above, `dictionary.toString` is non-enumerable.
30+
31+
See the the chapter on [Property flags and descriptors](http://javascript.info/property-descriptors) for review.

0 commit comments

Comments
 (0)