---
title: "Discussion on \"JavaScript Modules: Import and Export Explained\" | Hashnode"
description: "Discussion on \"JavaScript Modules: Import and Export Explained\". For a long time, JavaScript had no official way to split code across files. Everything loaded into the same global scope, variables collided, and the only real organization strategy was hoping nobody"
url: "https://hashnode.com/posts/javascript-modules-import-and-export-explained/69fccc216d4d76c5a8050e64"
---

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

Discussion

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

For a long time, JavaScript had no official way to split code across files. Everything loaded into the same global scope, variables collided, and the only real organization strategy was hoping nobody

May 7 · 7 min read · blog-santra.hashnode.dev  
Read the article

-   [#js-modules](https://hashnode.com/tag/js-modules)
-   [#javascript-importexport](https://hashnode.com/tag/javascript-importexport)
-   [#import-export](https://hashnode.com/tag/import-export)

## Written by

[Santra](https://hashnode.com/@Santra)

@Santra

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
