フリー問題

Salesforce Certified JavaScript Developer のフリー問題 8 / 20 問目

問題文

An object must be created with a specified object as its prototype and no own properties. Which call does that?

選択肢

  1. new with the intended prototype used as a constructor function, which links the new object to it as its own prototype directly.
  2. The spread syntax applied to the intended prototype object.
  3. Object.create with the intended prototype as the argument.
  4. Object.assign with the intended prototype as the first argument, because the target of the assignment becomes the prototype of the returned object.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。