Why modules are needed ? Before ES6, JavaScript had no built-in way to organize code across multiple files. Every variable and function ended up in the global scope, which quickly became a mess — diff
hasan3012.hashnode.dev3 min readNo responses yet.