Created
August 1, 2018 10:26
-
-
Save jkomyno/6b2d63ea7f2d2d1287ec5101be0617db 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 file2 = require('./file2'); | |
console.log(`Greet -> ${file2.getGreet('Bares')}`); | |
console.log(`Sum -> ${file2.sum('1', '5')}`); |
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
exports.getGreet = (name) => `Salve signor ${name}, si ricorda di me?`; | |
exports.sum = (str1, str2) => (str1 | 0) + (str2 | 0); |
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
{ | |
"name": "base", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"start": "node file1.js" | |
}, | |
"keywords": [], | |
"author": "Alberto Schiabel (https://github.com/jkomyno)", | |
"license": "MIT" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
npm start