問題文
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?
選択肢
- An arrow function binds this to the global object of the running environment at the point of the call.
- An arrow function receives a fresh this that points at the object which owns the method in which the arrow function was written.
- 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.
- 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.