Skip to content

Yazdun/fcc-javascript-modules

Repository files navigation


Logo

What is the difference between Default and Named exports in JavaScript?

An introduction to JavaScript modules
Read on FreeCodeCamp »

View Demo · Request Feature · Report Bug

freeCodeCamp HTML Vite JavaScript CSS Netlify

Thumbnail

Introduction

JavaScript, being one of the most popular programming languages among developers, offers multiple ways to organize and share code between different files.

When working with modules, you might come across two common ways of exporting functionality: Default exports and Named exports. Understanding the difference between these two methods is essential for effectively managing your codebase and making it more maintainable.

In this article, we will explore the differences between Default and Named exports in JavaScript, highlighting their use cases and best practices to help you choose the right approach for your projects.

Read more on freeCodeCamp

Getting Started

To get started with the project in your local development environment, follow these steps:

  1. Clone the project by running the following command on the terminal 🔽

    git@github.com:Yazdun/fcc-javascript-modules.git
  2. Go into the project directory 🔽

    cd fcc-javascript-modules
  3. Install all the dependencies ✅

    npm install
  4. Checkout to the starter branch 🌴

    git checkout starter
  5. Start the application development server 🚀

    npm run dev

You are now ready to go!

Contribute to this project

Thank you for browsing this repo. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks