Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

How do arrow functions handle the this keyword?

  1. A They create their own this from the call site
  2. B They inherit this lexically from the enclosing scope
  3. C this is always undefined
  4. D this always refers to the global object
Answer

They inherit this lexically from the enclosing scope

Arrow functions have no this binding of their own, which makes them ideal for callbacks and unsuitable as object methods or constructors.

All Javascript MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as