From 8b800642ca9ae33b21bc2cdd7e46804386b40fa5 Mon Sep 17 00:00:00 2001 From: Ahmad Idrees <35655048+mahmad321git@users.noreply.github.com> Date: Tue, 8 Oct 2024 14:37:01 +0500 Subject: [PATCH] fix (curriculum): Updated explanation regarding function currying in step 60 (#56586) Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> --- .../646d3952f6af37b6a1c241c2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-functional-programming-by-building-a-spreadsheet/646d3952f6af37b6a1c241c2.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-functional-programming-by-building-a-spreadsheet/646d3952f6af37b6a1c241c2.md index 3768c50634c..a54a3dcb5de 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-functional-programming-by-building-a-spreadsheet/646d3952f6af37b6a1c241c2.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-functional-programming-by-building-a-spreadsheet/646d3952f6af37b6a1c241c2.md @@ -7,7 +7,7 @@ dashedName: step-60 # --description-- -Now that your `.map()` function is receiving the innermost function reference from `addCharacters`, it will properly iterate over the elements and pass each element as `n` to that function. +Now that your `.map()` function is receiving the returned `num => charRange(...).map(...)` function reference from the curried `addCharacters` calls, it will properly iterate over the elements and pass each element as `n` to that function. You'll notice that you are not using your `match` parameter. In JavaScript, it is common convention to prefix an unused parameter with an underscore `_`. You could also leave the parameter empty like so: `(, char1)` but it is often clearer to name the parameter for future readability.