Skip to content

Instantly share code, notes, and snippets.

@jkomyno
Created August 1, 2018 10:26
Show Gist options
  • Select an option

  • Save jkomyno/6b2d63ea7f2d2d1287ec5101be0617db to your computer and use it in GitHub Desktop.

Select an option

Save jkomyno/6b2d63ea7f2d2d1287ec5101be0617db to your computer and use it in GitHub Desktop.
const file2 = require('./file2');
console.log(`Greet -> ${file2.getGreet('Bares')}`);
console.log(`Sum -> ${file2.sum('1', '5')}`);
exports.getGreet = (name) => `Salve signor ${name}, si ricorda di me?`;
exports.sum = (str1, str2) => (str1 | 0) + (str2 | 0);
{
"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"
}
@jkomyno
Copy link
Copy Markdown
Author

jkomyno commented Aug 1, 2018

npm start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment