---
title: "Discussion on \"Understanding CommonJS and ESM in Javascript\" | Hashnode"
description: "Discussion on \"Understanding CommonJS and ESM in Javascript\". CommonJS and ESM (or ES6 modules) are two different ways of importing modules in javascript with ESM being the recent addition to the JavaScript language specification and are seeking to unify and standardize how modules are loaded in JavaScript appl..."
url: "https://hashnode.com/posts/understanding-commonjs-esm/624584c9114d74ee1e6338a9"
---

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

Discussion

# [Understanding CommonJS and ESM in Javascript](https://abdulloooh.hashnode.dev/understanding-commonjs-esm?utm_source=hashnode&utm_medium=feed)

CommonJS and ESM (or ES6 modules) are two different ways of importing modules in javascript with ESM being the recent addition to the JavaScript language specification and are seeking to unify and standardize how modules are loaded in JavaScript appl...

Mar 31, 2022 · 4 min read · abdulloooh.hashnode.dev  
Updated Sep 20, 2022  
Read the article

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

## Written by

[Abdullah Oladipo](https://hashnode.com/@abdulloooh)

@abdulloooh

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

Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
