---
title: "Discussion on \"JavaScript Modules: Import and Export Explained\" | Hashnode"
description: "Discussion on \"JavaScript Modules: Import and Export Explained\". In this article, we shall explore what is imports and exports in JavaScript and how it helps us in writing modular code.\nWhy modules are needed?\nBefore modules were introduced, we used to write code i"
url: "https://hashnode.com/posts/javascript-modules-import-and-export-explained/69edc12914b6663632537871"
---

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

Discussion

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

In this article, we shall explore what is imports and exports in JavaScript and how it helps us in writing modular code. Why modules are needed? Before modules were introduced, we used to write code i

Apr 26 · 3 min read · javascript-modules-hrishikesh.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#blog](https://hashnode.com/tag/blog)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#import-export](https://hashnode.com/tag/import-export)

## Written by

[Hrishikesh Shanbhag](https://hashnode.com/@HrishikeshShanbhag)

@HrishikeshShanbhag

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
