-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: update week 14 * refactor: format
- Loading branch information
1 parent
84fdc69
commit 4b5c545
Showing
2 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# [Stage#2.](../../) JavaScript Garbage Collection 🗑️ | ||
|
||
## Module Overview 📚 | ||
|
||
This module delves into the concept of garbage collection in JavaScript, focusing on how JavaScript automatically manages memory. The course aims to provide a clear understanding of the mechanisms JavaScript uses to identify and free unused memory, a process critical for optimizing application performance and preventing memory leaks. | ||
|
||
## Learning Objectives 🎯 | ||
|
||
Students will: | ||
|
||
- Understand what garbage collection is and why it is necessary in JavaScript. | ||
- Learn about the main algorithms used for garbage collection in JavaScript, such as mark-and-sweep and reference counting. | ||
- Explore common scenarios that lead to memory leaks and how to avoid them. | ||
- Gain practical skills in identifying potential memory management issues in JavaScript code. | ||
|
||
## Approximate Module Completion Time ⏱️ | ||
|
||
- **2 hours** | ||
|
||
## Theory 📖 | ||
|
||
Students are encouraged to explore the following resources: | ||
|
||
1. **Understanding Garbage Collection:** | ||
|
||
- [JavaScript Memory Management](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management) | ||
- [Introduction to Garbage Collection](https://javascript.info/garbage-collection) | ||
|
||
2. **Garbage Collection Algorithms:** | ||
|
||
- [Reference Counting in JavaScript](https://v8.dev/blog/trash-talk) | ||
|
||
3. **Detecting and Preventing Memory Leaks:** | ||
|
||
- [Tools and Techniques to Detect Memory Leaks in JavaScript](https://www.dynatrace.com/news/blog/understanding-garbage-collection-and-hunting-memory-leaks-in-node-js/) | ||
|
||
## Additional Resources 📘 | ||
|
||
1. [Video: JavaScript Memory Management Explained](https://www.youtube.com/watch?v=LaxbdIyBkL0) | ||
2. [Article: Advanced Memory Management](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management) | ||
|
||
By the end of this module, students should be able to understand the importance of garbage collection in JavaScript and implement best practices in their coding to optimize application performance. |