0 / 60 seg.

How can you create a shallow clone of an object using the Object.create() method?

const obj1 = { name: "John", age: 30 };
const obj2 = Object.create(Object.getPrototypeOf(obj1), Object.getOwnPropertyDescriptors(obj1));
console.log(obj2.name);