V8 and memory basics
Reason about JIT performance, object shapes and garbage collection at an interview level.
- JS.12.01How V8 runs JavaScriptSeniorBeing written
- JS.12.02Hidden classes (shapes) and inline cachesSeniorBeing written
- JS.12.03Garbage collectionCoreMid-level11 min
- JS.12.04Finding and fixing memory leaksCoreSenior12 min
Interview questions in this module
- How does the V8 engine execute JavaScript?
- What are hidden classes and why should objects keep a consistent shape?
- How does garbage collection work in JavaScript?
- What are common causes of memory leaks in a single-page app? How do you find them?
- Is JavaScript compiled or interpreted?