Skip to content

Commit

Permalink
Update 💬
Browse files Browse the repository at this point in the history
  • Loading branch information
punitkatiyar authored Sep 9, 2024
1 parent 5389ae9 commit 764e715
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions 08.js-module/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@
## 3. Types of Exports

> **Named Exports:** Multiple exports from a module; you can selectively import them by name.
### **Named Exports:** Multiple exports from a module; you can selectively import them by name.

> Exports
```
// Exporting named functions
export function add(a, b) {
return a + b;
}
Expand All @@ -50,7 +51,7 @@ console.log(subtract(5, 3)); // Output: 2



> **Default Exports:** A single export per module; you can import it without using the specific name.
### **Default Exports:** A single export per module; you can import it without using the specific name.


```
Expand Down

0 comments on commit 764e715

Please sign in to comment.