---
title: "Discussion on \"Understanding export and import in CommonJS\" | Hashnode"
description: "Discussion on \"Understanding export and import in CommonJS\". I'm pretty sure this is not the first time that I got confused by the various exports' syntax in CommonJS and definitely will not be the last. Hence, this article will hopefully be useful for my future self whenever I need a reference.\nScenario\nConsi..."
url: "https://hashnode.com/posts/understanding-export-and-import-in-commonjs/633f1758e8ef1420731ae306"
---

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

Discussion

# [Understanding export and import in CommonJS](https://bwgjoseph.com/understanding-export-and-import-in-commonjs?utm_source=hashnode&utm_medium=feed)

I'm pretty sure this is not the first time that I got confused by the various exports' syntax in CommonJS and definitely will not be the last. Hence, this article will hopefully be useful for my future self whenever I need a reference. Scenario Consi...

Oct 6, 2022 · 5 min read · bwgjoseph.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#commonjs](https://hashnode.com/tag/commonjs)

## Written by

[Joseph Gan](https://hashnode.com/@bwgjoseph)

@bwgjoseph · Singapore

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

Advocate for better developer's productivity and experience Documenting my learnings and sharing it

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
