javascript es6 modules

JavaScript ES6 Modules

understand the JS modules in easy way

Phanendra Guptha Katta
Published in
4 min readJul 9, 2020

--

JS modules are used to export classes, functions, objects and primitives from one module to another. So, we can use the same module in multiple files without rewriting code over and over again to make our code DRY(don’t repeat yourself). JavaScript libraries or frameworks like ReactJS, AngularJS enable usage of these modules. Understanding how modules works is…

--

--