---
title: "Discussion on \"JavaScript Modules: Import and Export Explained\" | Hashnode"
description: "Discussion on \"JavaScript Modules: Import and Export Explained\". Why We Need Modules\nIn the early days of the web, scripts were loaded one after another. This led to several \"code organization nightmares\":\n\nGlobal Namespace Pollution: Variables from one file would"
url: "https://hashnode.com/posts/javascript-modules-import-and-export-explained/69f074f86ad9c5aa3b8c93c1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript Modules: Import and Export Explained](https://birendra.site/javascript-modules-import-and-export-explained?utm_source=hashnode&utm_medium=feed)

Why We Need Modules In the early days of the web, scripts were loaded one after another. This led to several "code organization nightmares": Global Namespace Pollution: Variables from one file would

Apr 28 · 3 min read · birendra.site  
Read the article

## Written by

[Birendra K](https://hashnode.com/@Birendrak)

@Birendrak · India

  
[View profile](https://hashnode.com/@Birendrak)

Everthing for revision

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
