Engrain by ByteRush

JS.12 4 concepts · 2 ready

V8 and memory basics

Reason about JIT performance, object shapes and garbage collection at an interview level.

  1. JS.12.01How V8 runs JavaScriptSeniorBeing written
  2. JS.12.02Hidden classes (shapes) and inline cachesSeniorBeing written
  3. JS.12.03Garbage collectionCoreMid-level11 min
  4. JS.12.04Finding and fixing memory leaksCoreSenior12 min

Interview questions in this module

  1. How does the V8 engine execute JavaScript?
  2. What are hidden classes and why should objects keep a consistent shape?
  3. How does garbage collection work in JavaScript?
  4. What are common causes of memory leaks in a single-page app? How do you find them?
  5. Is JavaScript compiled or interpreted?