JavaScript Modules: Import and Export Explained
Why do we need modules?
Imagine you are writing a JavaScript app a simple to-do list. At first, it is just 50 lines. You put everything in one file: app.js. Easy.
Now it grows. You add a login system,
saurabh-ravte.hashnode.dev4 min read