---
title: "Discussion on \"Modules in JavaScript\" | Hashnode"
description: "Discussion on \"Modules in JavaScript\". Learn about JavaScript modules, ES Module (ESM), and CommonJS, including import/export syntax and default vs named exports"
url: "https://hashnode.com/posts/modules-in-javascript/67acaae4c22e7f675a4f5dc6"
---

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

Discussion

# [Modules in JavaScript](https://saugatblog.hashnode.dev/modules-in-javascript?utm_source=hashnode&utm_medium=feed)

Learn about JavaScript modules, ES Module (ESM), and CommonJS, including import/export syntax and default vs named exports

Feb 12, 2025 · 2 min read · saugatblog.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#nodejs-developer](https://hashnode.com/tag/nodejs-developer)
-   [#nepal](https://hashnode.com/tag/nepal)
-   [#commonjs-modules](https://hashnode.com/tag/commonjs-modules)

## Written by

[Saugat Ghimire](https://hashnode.com/@saugatify)

@saugatify

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

Learns

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
