1 typo in 06-function-object

in 06-advanced-functions/06-function-object/5-sum-many-brackets/solution.md
This commit is contained in:
Laurent Lyaudet 2021-03-24 16:33:28 +01:00 committed by GitHub
parent d4b3c135cc
commit 8bc74f1bde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,4 +52,4 @@ function f(b) {
} }
``` ```
This `f` will be used in the next call, again return itself, so many times as needed. Then, when used as a number or a string -- the `toString` returns the `currentSum`. We could also use `Symbol.toPrimitive` or `valueOf` here for the conversion. This `f` will be used in the next call, again return itself, as many times as needed. Then, when used as a number or a string -- the `toString` returns the `currentSum`. We could also use `Symbol.toPrimitive` or `valueOf` here for the conversion.