1
00:00:01,403 --> 00:00:04,069
Before we look into the behavior of this

2
00:00:04,069 --> 00:00:06,403
inside an arrow function, let's briefly

3
00:00:06,403 --> 00:00:09,603
review the this keyword. In JavaScript,

4
00:00:09,603 --> 00:00:13,069
this always refers to the owner of the

5
00:00:13,069 --> 00:00:15,736
function we are executing. So if it's a

6
00:00:15,736 --> 00:00:18,117
standalone function, this refers to the

7
00:00:18,117 --> 00:00:20,688
global window object. Otherwise, it can

8
00:00:20,688 --> 00:00:23,831
refer to the object that a function is a

9
00:00:23,831 --> 00:00:26,503
method of. The point to note here is that,

10
00:00:26,503 --> 00:00:28,292
unlike regular functions, arrow functions

11
00:00:28,292 --> 00:00:31,403
do not have their own this value.

12
00:00:31,403 --> 00:00:36,000
Moreover, the value of this is always inherited from the enclosing scope.

