Skip to content

Commit bcd2658

Browse files
authored
Merge pull request #416 from connecttobn/master
Modified outputs in advanced programming and OOP chapters
2 parents 9ad2ad6 + 7e183f8 commit bcd2658

File tree

2 files changed

+2
-2
lines changed
  • 1-js
    • 06-advanced-functions/11-currying-partials
    • 07-object-oriented-programming/02-property-accessors

2 files changed

+2
-2
lines changed

1-js/06-advanced-functions/11-currying-partials/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ user.sayNow = partial(user.say, new Date().getHours() + ':' + new Date().getMinu
9595

9696
user.sayNow("Hello");
9797
// Something like:
98-
// [10:00] Hello, John!
98+
// [10:00] John: Hello!
9999
```
100100

101101
The result of `partial(func[, arg1, arg2...])` call is a wrapper `(*)` that calls `func` with:

1-js/07-object-oriented-programming/02-property-accessors/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Object.defineProperty(user, 'fullName', {
128128

129129
alert(user.fullName); // John Smith
130130

131-
for(let key in user) alert(key);
131+
for(let key in user) alert(key); // name, surname
132132
```
133133

134134
Please note once again that a property can be either an accessor or a data property, not both.

0 commit comments

Comments
 (0)