問題文
An object must be created with a specified object as its prototype and no own properties. Which call does that?
選択肢
- new with the intended prototype used as a constructor function, which links the new object to it as its own prototype directly.
- The spread syntax applied to the intended prototype object.
- Object.create with the intended prototype as the argument.
- Object.assign with the intended prototype as the first argument, because the target of the assignment becomes the prototype of the returned object.