Node.js · Senior · Question 6 of 75

What are hidden classes (shapes) in V8, and why do they matter?

Explanation

Creating objects with the same properties in the same order keeps them on one shape. Adding properties in different orders or using delete can make hot code polymorphic and slower.

Further reading

Problem with a question

Node.js · Senior · question 6

Test yourself

Take the Node.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz