Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alonwillmakeit/472ee3bd3fc9652f2daff339360f57f5 to your computer and use it in GitHub Desktop.
Save alonwillmakeit/472ee3bd3fc9652f2daff339360f57f5 to your computer and use it in GitHub Desktop.
const add = (a, b) => a + b
const sub = (a, b) => a - b
const div = (a, b) => a / b
const mul = (a, b) => a * b
const print = (add, sub, div, mul) =>
console.log(add(a, b))
console.log(sub(a, b))
console.log(div(a, b))
console.log(mul(a, b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment