Created
December 7, 2018 16:38
-
-
Save jaxxreal/47391e8016fd5a36a2784ceb6c168dfe to your computer and use it in GitHub Desktop.
String code challenge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Write a simple compose function, that works next way: | |
let addTwo = a => a + 2; | |
let mulitplyByFour = a => a * 4; | |
let subtractTen = a => a - 10; | |
compose(addTwo, mulitplyByFour, subtractTen)(45); // 178 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment