DEV Community

Ian Andwati
Ian Andwati

Posted on • Originally published at andwati.github.io on

Export default and module.exports in Javascript

Modules are the building blocks of modern JavaScript applications, allowing for the encapsulation of code into reusable components. Two primary systems govern the exportation of these modules: export default in ES6 and module.exports in CommonJS.

Top comments (0)