Export modules

what is the difference between module.exports vs export default vs export ?

module.exports is the methodology for modules that Node implemented, before JS natively understood what a “module” was.

With the arrival of ES6, however, JavaScript gained a standard means to work with modules which is the import and export functionality.

3 Likes