Advanced
JavaScript
Q61 / 100
What is the V8 engine's hidden class (shape) optimization?
Correct! Well done.
Incorrect.
The correct answer is B) An internal structure V8 creates to represent object layouts, allowing fast property access when objects share the same shape
B
Correct Answer
An internal structure V8 creates to represent object layouts, allowing fast property access when objects share the same shape
Explanation
V8 assigns hidden classes (shapes) to objects with the same property sequence. Adding properties in a consistent order lets V8 optimize property access via static offsets.
Progress
61/100