Interview Hack
Home
About
Games
Levels
JavaScript Quiz - Level 8
1. Purpose of WeakRef?
Weak reference without preventing GC
Strong reference
Permanent cache
Encrypted reference
2. Capture heap snapshot in Node.js?
Using DevTools or inspector protocol
--trace-gc flag
global.gc()
JSON.stringify(global)
3. Inline caching meaning?
Caches property lookup location
Embed constants in code
Inline functions in build
Inline variables in stack
4. LdaSmi in V8 bytecode?
Load small int to accumulator
Load string
Load heap snapshot
Load symbol
5. Backpressure in streams?
Signal to slow producer
Speed up processing
Temporary buffer
Pause manually
6. Role of PreParser in V8?
Collects scope info before parsing
Minifies code
Caches AST
Runs on separate thread
7. WeakMap for private data?
Store hidden data tied to object
Permanent storage
Encrypt properties
Auto delete keys
8. Graph rewriting in bundlers?
Optimize and relink dependencies
Draw dependency graphs
Cache dependencies
Inline small modules
9. WeakRef after GC?
Returns undefined
Returns null
Throws error
Empty object
SUBMIT EXAM