From be8b0fb3a6b6cbf02e2b1554bb02f04df96dcf9b Mon Sep 17 00:00:00 2001 From: Brian Juul Andersen Date: Sat, 3 Jun 2017 10:26:08 +0200 Subject: [PATCH 1/2] Update index.md Fixed minor grammatical error. --- 1-js/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/index.md b/1-js/index.md index 741c4207..c313cb85 100644 --- a/1-js/index.md +++ b/1-js/index.md @@ -1,6 +1,6 @@ # The JavaScript language -Here we learn JavaScript, starting from the scratch and to advanced concepts like OOP. +Here we learn JavaScript, starting from scratch and go on to advanced concepts like OOP. We concentrate on the language itself here, with the minimum of environment-specific notes. From d55932273fec8a4faf982ecb6f8f46d66c3162b9 Mon Sep 17 00:00:00 2001 From: Oleg Legun Date: Sat, 3 Jun 2017 14:02:35 +0300 Subject: [PATCH 2/2] Fix invalid function name curried() -> curriedSum() --- 1-js/06-advanced-functions/11-currying-partials/article.md | 6 +++--- 1 file changed, 3 insertions(+), 3 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 38681c03..6e7b78e8 100644 --- a/1-js/06-advanced-functions/11-currying-partials/article.md +++ b/1-js/06-advanced-functions/11-currying-partials/article.md @@ -234,13 +234,13 @@ function sum(a, b, c) { let curriedSum = curry(sum); // still callable normally -alert( curried(1, 2, 3) ); // 6 +alert( curriedSum(1, 2, 3) ); // 6 // get the partial with curried(1) and call it with 2 other arguments -alert( curried(1)(2,3) ); // 6 +alert( curriedSum(1)(2,3) ); // 6 // full curried form -alert( curried(1)(2)(3) ); // 6 +alert( curriedSum(1)(2)(3) ); // 6 ``` The new `curry` may look complicated, but it's actually pretty easy to understand.