From 7e183f85b18e58802a81c73a162f40e72b063c22 Mon Sep 17 00:00:00 2001 From: Sunil B N Date: Mon, 26 Mar 2018 23:13:55 +0530 Subject: [PATCH] Modified outputs in advanced programming and OOP chapters --- 1-js/06-advanced-functions/11-currying-partials/article.md | 2 +- .../02-property-accessors/article.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/06-advanced-functions/11-currying-partials/article.md b/1-js/06-advanced-functions/11-currying-partials/article.md index 717dccf4..e866f38a 100644 --- a/1-js/06-advanced-functions/11-currying-partials/article.md +++ b/1-js/06-advanced-functions/11-currying-partials/article.md @@ -95,7 +95,7 @@ user.sayNow = partial(user.say, new Date().getHours() + ':' + new Date().getMinu user.sayNow("Hello"); // Something like: -// [10:00] Hello, John! +// [10:00] John: Hello! ``` The result of `partial(func[, arg1, arg2...])` call is a wrapper `(*)` that calls `func` with: diff --git a/1-js/07-object-oriented-programming/02-property-accessors/article.md b/1-js/07-object-oriented-programming/02-property-accessors/article.md index db49450a..fa4d2216 100644 --- a/1-js/07-object-oriented-programming/02-property-accessors/article.md +++ b/1-js/07-object-oriented-programming/02-property-accessors/article.md @@ -128,7 +128,7 @@ Object.defineProperty(user, 'fullName', { alert(user.fullName); // John Smith -for(let key in user) alert(key); +for(let key in user) alert(key); // name, surname ``` Please note once again that a property can be either an accessor or a data property, not both.