-
-
Save gdyrrahitis/36a81526f5188ec7324424c28cde5800 to your computer and use it in GitHub Desktop.
This file contains 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
const add = (x, y) => { | |
return x + y; | |
} | |
const mul = (x, y) => { | |
return x * y; | |
} | |
const subtract = (x, y) => { | |
return x - y; | |
} | |
const result = 5 | |
|> add(10, ?) | |
|> mul(2, ?) | |
|> subtract (?, 3); | |
console.log("The value is:", result); | |
// prints: "The value is: 27" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment