Created
October 4, 2022 09:20
-
-
Save alonwillmakeit/472ee3bd3fc9652f2daff339360f57f5 to your computer and use it in GitHub Desktop.
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
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