edited blogs

This commit is contained in:
2025-08-05 03:25:00 +03:00
parent eb4fdaff78
commit 64bfc4f439
19 changed files with 66 additions and 56 deletions
@@ -1,7 +1,7 @@
+++
title = "Export default and module.exports in Javascript"
description = "Modules are the building blocks of modern JavaScript applications, allowing for the encapsulation of code into reusable components. Two primary systems govern the exportation of these modules: export default in ES6 and module.exports in CommonJS. "
author = "Ian Andwati"
author = "mockingspectre"
date = 2024-01-17
[taxonomies]
tags = ["javascript", "node"]
@@ -9,7 +9,7 @@ tags = ["javascript", "node"]
Modules are the building blocks of modern JavaScript applications, allowing for the encapsulation of code into reusable components. Two primary systems govern the exportation of these modules: export default in ES6 and module.exports in CommonJS.
<!-- more -->
Javascript is a popular programming language that can run both in the browser and on the server. However, different environments may have different ways of organizing and importing Javascript modules. In this article, we will compare two common methods of exporting and importing modules: **export default** and **module.exports**.