// Car object literal var car = { makeModel: 'make and model string', wheels: [ { direction: 0, rotation: 0 }, { direction: 0, rotation: 0 }, { direction: 0, rotation: 0 }, { direction: 0, rotation: 0 }, ] } Modern JS engines will allocate a car object, a string object, an array object to store the wheels, and individual objects for each wheel. In JavaScript, there is indirection from the car variable to the car object, from the car object to the wheel array, from the wheel array to the wheel objects, and potentially from the wheel objects to the rotation angles.