---
title: "Discussion on \"JavaScript Modules - How to Import & Export Code\" | Hashnode"
description: "Discussion on \"JavaScript Modules - How to Import & Export Code\". Produce clean and reusable code using import-export statements in JavaScript ES6."
url: "https://hashnode.com/posts/javascript-es6-modules/63b9389669ef7a009aaf05b4"
---

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

Discussion

# [JavaScript Modules - How to Import & Export Code](https://abinjohn.hashnode.dev/javascript-es6-modules?utm_source=hashnode&utm_medium=feed)

Produce clean and reusable code using import-export statements in JavaScript ES6.

Jan 7, 2023 · 6 min read · abinjohn.hashnode.dev  
Updated Feb 17, 2023  
Read the article

-   [#web-development](https://hashnode.com/tag/web-development)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#wemakedevs](https://hashnode.com/tag/wemakedevs)

## Written by

[Abin John](https://hashnode.com/@abinjohn)

@abinjohn · Kerala, India

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

Rediscovering my passion for coding.

Podcast Producer | Music Producer | JavaScript Fanboy From Kerala, India

## Responses 4

Markdown supported · ⌘↵ to post

[Rahul Pandey](https://hashnode.com/@rahulpandey2396)

[Feb 20, 2023](https://hashnode.com/posts/javascript-es6-modules/63b9389669ef7a009aaf05b4/comment/63f368e73dfc159cd6b1118e)

Great blog Abin! Cleared all my doubts related to Module export/import process in JS.

[Abin John](https://hashnode.com/@abinjohn)

[Feb 20, 2023](https://hashnode.com/posts/javascript-es6-modules/63b9389669ef7a009aaf05b4/comment/63f368e73dfc159cd6b1118e#reply-63f3a75591a509b61ed01a0c)

Thanks for the comment, Rahul. Happy to help!!

[Pranita Fulsundar](https://hashnode.com/@pranita)

[Feb 18, 2023](https://hashnode.com/posts/javascript-es6-modules/63b9389669ef7a009aaf05b4/comment/63f0bc930e63a77a616fd81f)

Must say, your explanation skills are awesome! It helped me to get a clear understanding of export and import statements in JS.

[Abin John](https://hashnode.com/@abinjohn)

[Feb 18, 2023](https://hashnode.com/posts/javascript-es6-modules/63b9389669ef7a009aaf05b4/comment/63f0bc930e63a77a616fd81f#reply-63f0d7fa34c25f806177361d)

Thank you so much! Happy to see it helped!

[Jagrut Sharma](https://hashnode.com/@Jagrut)

[Feb 18, 2023](https://hashnode.com/posts/javascript-es6-modules/63b9389669ef7a009aaf05b4/comment/63f0302ea7e6ca7a328c7ce2)

Great article explaining everything. Helped me a lot. Thanks for writing :)

[Abin John](https://hashnode.com/@abinjohn)

[Feb 18, 2023](https://hashnode.com/posts/javascript-es6-modules/63b9389669ef7a009aaf05b4/comment/63f0302ea7e6ca7a328c7ce2#reply-63f0d80234c25f8061773621)

Thanks, Jagrut!

[Anand Baraik](https://hashnode.com/@anandbaraik)

[Feb 17, 2023](https://hashnode.com/posts/javascript-es6-modules/63b9389669ef7a009aaf05b4/comment/63ef74a446e2f1644c4f398d)

Your explanations are way good than few teachers I know. Loved how have you broken things down to make it easier to grasp. Well written. 👏

[Abin John](https://hashnode.com/@abinjohn)

[Feb 17, 2023](https://hashnode.com/posts/javascript-es6-modules/63b9389669ef7a009aaf05b4/comment/63ef74a446e2f1644c4f398d#reply-63ef9fca3c9c765be7a4814d)

Thank you so much, Anand!
