Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardNodeJSV8 hidden classesSingle-choice MCQ

Two objects are created from the same literal shape but the properties are assigned in different orders. How does V8's hidden-class (Map) system treat them?

const a = {}; a.x = 1; a.y = 2; const b = {}; b.y = 2; b.x = 1; // a and b: same hidden class or different?