Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis
Created July 10, 2019 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdyrrahitis/36a81526f5188ec7324424c28cde5800 to your computer and use it in GitHub Desktop.
Save gdyrrahitis/36a81526f5188ec7324424c28cde5800 to your computer and use it in GitHub Desktop.
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