https://github.com/sldeaals/chained-func-exercise
Chained functions
https://github.com/sldeaals/chained-func-exercise
chained-methods javascript mathematics
Last synced: 18 days ago
JSON representation
Chained functions
- Host: GitHub
- URL: https://github.com/sldeaals/chained-func-exercise
- Owner: sldeaals
- Created: 2022-08-26T02:51:16.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-26T02:59:15.000Z (almost 3 years ago)
- Last Synced: 2025-01-02T00:42:12.979Z (6 months ago)
- Topics: chained-methods, javascript, mathematics
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chained-func-exercise
## Exercise
A function that multiplies but can be chained. In other words, the function returns the context to continue using it on itself. Then divide numbers.
### Example
multiplyAndDivide(2)(2)(2) //should return 2