You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
171 B
JavaScript
10 lines
171 B
JavaScript
3 years ago
|
const X = function () {
|
||
|
// "this" here is the caller of X
|
||
|
};
|
||
|
|
||
|
const Y = () => {
|
||
|
// "this" here is NOT the caller of Y
|
||
|
|
||
|
// It's the same "this" found in Y's scope
|
||
|
};
|