Member-only story
Javascript: Javascript Features
2 min readMar 26, 2022
Features
- High-level
- Garbage-collected
- Interpreted and Just-in-time compilation
- Multi-paradigm
- Prototype based object oriented
- First class functions
- Dynamic
- Single-threaded
HIGH-LEVEL
- Languages that need not worry about the resources management such as memory.
- They allow the programmer to focus on what needs to be done, rather than on how the computer actually works.
- Low-level language — example- C-> where memory is to be handled manually.
Garbage-collected
- JavaScript utilises a form of automatic memory management known as garbage collection (GC).
- V8 Engine internally uses Mark and Sweep Algorithm to free up space from the memory heap.
- The garbage collector attempts to reclaim memory which was allocated by the program, but is no longer referenced — also called garbage.
- JS Engine automatically removes the unused variables and things