フリー問題

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

問題文

A timer inside an object method must be able to read the object's own properties. Which statement about arrow functions is correct in this situation?

選択肢

  1. An arrow function binds this to the global object of the running environment at the point of the call.
  2. An arrow function receives a fresh this that points at the object which owns the method in which the arrow function was written.
  3. An arrow function has no this of its own, so it keeps the this of the surrounding scope and can read the object's properties.
  4. An arrow function can be given a this with call or apply, which is the usual way to fix the problem inside a timer callback.

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

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