Created
April 4, 2019 07:59
-
-
Save gisderdube/03619d233b7f1bc82be55c35d4d264d9 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
function add(a, b) { | |
return a + b | |
} | |
function subtract(a, b) { | |
return a - b | |
} | |
module.exports = { | |
add, | |
subtract | |
} |
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, 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