mhpreiman
1/23/2018 - 5:00 AM

modules

module.exports exports the module for use in another program
require() imports the module for use in the current program

Export modules in ES6: export default - export JavaScript objects, functions, and primitive data types
export - named exports to export data in variables; can be aliased with the as keyword
import - import any object, function, or data type