fixed posts layout

This commit is contained in:
2024-11-20 16:29:14 +03:00
parent 30f41d84a5
commit 43c02b90ea
11 changed files with 49 additions and 77 deletions
@@ -1,10 +1,8 @@
---
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"
date = 2024-01-17
[taxonomies]
tags = ["javascript", "node"]
title : Export default and module.exports in Javascript
author : Ian Andwati
date : 2024-01-17
tags : [javascript, node]
---
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**.