Skip to content

Commit 048a896

Browse files
committed
2 parents bae148b + 7f88e6f commit 048a896

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,13 @@ function sum(a, b, c) {
234234
let curriedSum = curry(sum);
235235

236236
// still callable normally
237-
alert( curried(1, 2, 3) ); // 6
237+
alert( curriedSum(1, 2, 3) ); // 6
238238

239239
// get the partial with curried(1) and call it with 2 other arguments
240-
alert( curried(1)(2,3) ); // 6
240+
alert( curriedSum(1)(2,3) ); // 6
241241

242242
// full curried form
243-
alert( curried(1)(2)(3) ); // 6
243+
alert( curriedSum(1)(2)(3) ); // 6
244244
```
245245

246246
The new `curry` may look complicated, but it's actually pretty easy to understand.

1-js/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The JavaScript language
22

3-
Here we learn JavaScript, starting from the scratch and to advanced concepts like OOP.
3+
Here we learn JavaScript, starting from scratch and go on to advanced concepts like OOP.
44

55
We concentrate on the language itself here, with the minimum of environment-specific notes.
66

0 commit comments

Comments
 (0)