const obj = Object.create({}, {
x: { value: 10, writable: false, enumerable: true, configurable: false }
});
obj.x; // 10The second argument accepts property descriptors for fine-grained control.
The second argument to Object.create() allows you to define properties with descriptors. You can specify if properties are writable, enumerable, or configurable.
Challenge: Use property descriptors to create objects with read-only properties and other constraints.