Modules
As our application grows bigger, we want to split it into multiple files, so called “modules”. A module may contain a class or a library of functions for a specific purpose. For a long time, JavaScript existed without a language-level module syntax. That wasn’t a problem, because initially scripts were small and simple, so there was no need. But eventually scripts became more and more complex, so the community invented a variety of ways to organize code into modules, special libraries to load modules on demand.
Modules in JavaScript
By Akshat Chaturvedi
● Published At Jan 2022
Through this blog post, I’ll explain the what, why, and how of Modules in JavaScript with a working example.... Keep reading ..
Exports, Imports and module.exports
By Vidhi Singh
● Published At May 2022
This article extensively discusses the exports, imports and module.exports in JavaScript.... Keep reading ..