Skip to content

Instantly share code, notes, and snippets.

@udittyagi
Last active August 23, 2019 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save udittyagi/8a0842ff28fdbb84aa2d126a09e6b2d9 to your computer and use it in GitHub Desktop.
Save udittyagi/8a0842ff28fdbb84aa2d126a09e6b2d9 to your computer and use it in GitHub Desktop.
const os = require('os'); //node's core module
const express = require('express') // third party module
const operations = require('./operations.js'); //local module
//Do something with these modules
const result1 = operations.multiply(2, 4);
console.log('Multiply Result: ', result1)// 8
const result2 = operations.sum(2, 3);// Error, as it is not exported.
console.log('Sum Result: ', result2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment