Advanced JavaScript
Q68 / 100

What is a JavaScript engine's inline cache (IC)?

Correct! Well done.

Incorrect.

The correct answer is B) A JIT optimization that caches type feedback at call sites to avoid repeated type checks on repeated invocations

B

Correct Answer

A JIT optimization that caches type feedback at call sites to avoid repeated type checks on repeated invocations

Explanation

Monomorphic ICs (one shape) are fastest. Polymorphic (few shapes) are acceptable. Megamorphic ICs (many shapes) degrade to slow hash lookups — keep object shapes consistent.

Progress
68/100