This commit is contained in:
Ilya Kantor 2019-05-31 20:07:38 +03:00
parent 6713199c3c
commit 389801a41e

View file

@ -204,7 +204,7 @@ admin['f'](); // Admin (dot or square brackets access the method doesn't mat
The rule is simple: if `obj.f()` is called, then `this` is `obj` during the call of `f`. So it's either `user` or `admin` in the example above.
````smart header="Calling without an object: `this=undefined`"
````smart header="Calling without an object: `this == undefined`"
We can even call the function without an object at all:
```js run