Last active
August 23, 2019 12:46
-
-
Save udittyagi/8a0842ff28fdbb84aa2d126a09e6b2d9 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
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