fix (curriculum): Updated explanation regarding function currying in step 60 (#56586)

Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com>
This commit is contained in:
Ahmad Idrees
2024-10-08 14:37:01 +05:00
committed by GitHub
parent 62eb2bb4b0
commit 8b800642ca
@@ -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.