100 realistic questions with model answers and the insider read: what they’re actually scoring. Modeled on interview loops at Netflix, PayPal, Uber, LinkedIn & Shopify.
process.memoryUsage() or a Prometheus gauge. If RSS climbs without recovery across multiple GC cycles, I take a sequence of heap snapshots using Chrome DevTools connected over --inspect, then compare them to find which constructor is accumulating. Common culprits in Node are event listeners never removed from an EventEmitter, closures holding references in module-level arrays, and unbounded in-memory caches. Once I identify the growing object class, I trace back to where instances are created and add the missing cleanup or cap the collection size.Walk in knowing what a senior answer sounds like, and what they're actually scoring.