---
title: "Discussion on \"Importing and Exporting Modules in JavaScript\" | Hashnode"
description: "Discussion on \"Importing and Exporting Modules in JavaScript\". Name Export\n\nexport const name = 'value'\n\nName Import\n\nimport { name } from '...'\n\n\nDefault Export\n\nexport default 'value'\n\nDefault Import\n\nimport anyName from '...'\n\n\nRename Export\n\nexport { name as newName }\n\nName Import\n\nimport { newName } from '...."
url: "https://hashnode.com/posts/importing-and-exporting-modules-in-javascript/62fc24ac4900bfdc62764add"
---

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

Discussion

# [Importing and Exporting Modules in JavaScript](https://anasnmu.hashnode.dev/importing-and-exporting-modules-in-javascript?utm_source=hashnode&utm_medium=feed)

Name Export export const name = 'value' Name Import import { name } from '...' Default Export export default 'value' Default Import import anyName from '...' Rename Export export { name as newName } Name Import import { newName } from '....

Aug 16, 2022 · 1 min read · anasnmu.hashnode.dev  
Read the article

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

## Written by

[Anas Nabil](https://hashnode.com/@anasnmu)

@anasnmu · Cairo, Egypt

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

Senior React Native Developer @ Nori Solutions

Experienced mobile app developer who has a track record of success creating apps that are both well-received and commercially viable. Skilled with working as a team and incorporating input into projects. Ability to always look for ways to improve upon an already existing app to keep people downloading it and enjoying it. Strong eye for detail and tenacity to never quit on something until it is absolutely perfect.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
