Created
April 3, 2023 02:00
-
-
Save mitchallen/11e774f7e4b0284abd6bc8a3fa5b053c to your computer and use it in GitHub Desktop.
An example of importing a module in the same scope
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
"use strict"; | |
var tools = require('@YOUR-SCOPE/demo-tools'); | |
module.exports = demoMain; | |
function demoMain(a,b,c) { | |
// return a + b - c | |
return tools.subtract(tools.add(a,b),c); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment