minor
This commit is contained in:
parent
6713199c3c
commit
389801a41e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue