* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
8 lines
675 B
Markdown
8 lines
675 B
Markdown
# Memory Management
|
|
|
|
Low-level languages like C, have manual memory management primitives such as `malloc()` and `free()`. In contrast, JavaScript automatically allocates memory when objects are created and frees it when they are not used anymore (garbage collection). This automaticity is a potential source of confusion: it can give developers the false impression that they don't need to worry about memory management.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@JavaScript Garbage Collection](https://javascript.info/garbage-collection)
|
|
- [@article@Memory Management in JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management) |