Skip to content

Instantly share code, notes, and snippets.

@gisderdube
Created April 4, 2019 07:59
Show Gist options
  • Save gisderdube/03619d233b7f1bc82be55c35d4d264d9 to your computer and use it in GitHub Desktop.
Save gisderdube/03619d233b7f1bc82be55c35d4d264d9 to your computer and use it in GitHub Desktop.
function add(a, b) {
return a + b
}
function subtract(a, b) {
return a - b
}
module.exports = {
add,
subtract
}
const { add, subtract } = require('./calculations')
console.log(subtract(5, add(3, 2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment