Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
JavaScript
/
JavaScript
How does an arrow function obtain `this`?
from JavaScript
beginner
1 min
How does an arrow function obtain `this`?
It captures `this` from its enclosing lexical scope.
It binds `this` to the object literal that contains it.
It chooses `this` from its first argument.
Check
Ask AI about this kata
Report an error
previous kata
Name the explicit-binding method that invokes a function with arguments supplied as an ar…
Fill in
next kata
Given `function read() { return this.name }`, what does `read.call({ name: "Lin" })` retu…
Quiz
A new version is available
Reload