From 114c4823fbdd620e0f4090bec4e3a402b0235934 Mon Sep 17 00:00:00 2001 From: 11un Date: Fri, 15 Feb 2019 10:39:26 -0800 Subject: [PATCH] typo + add link to relevant chapter --- .../06-prototype-methods/2-dictionary-tostring/solution.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/1-js/07-object-oriented-programming/06-prototype-methods/2-dictionary-tostring/solution.md b/1-js/07-object-oriented-programming/06-prototype-methods/2-dictionary-tostring/solution.md index debaecd6..0bc1636e 100644 --- a/1-js/07-object-oriented-programming/06-prototype-methods/2-dictionary-tostring/solution.md +++ b/1-js/07-object-oriented-programming/06-prototype-methods/2-dictionary-tostring/solution.md @@ -1,7 +1,7 @@ The method can take all enumerable keys using `Object.keys` and output their list. -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. +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. ```js run *!* @@ -27,3 +27,5 @@ alert(dictionary); // "apple,__proto__" ``` When we create a property using a descriptor, its flags are `false` by default. So in the code above, `dictionary.toString` is non-enumerable. + +See the the chapter on [Property flags and descriptors](http://javascript.info/property-descriptors) for review.