commit
13bae5d9b4
1 changed files with 2 additions and 2 deletions
|
@ -228,9 +228,9 @@ If you come from another programming language, then you are probably used to the
|
|||
|
||||
In JavaScript `this` is "free", its value is evaluated at call-time and does not depend on where the method was declared, but rather on what object is "before the dot".
|
||||
|
||||
The concept of run-time evaluated `this` has both pluses and minuses. On the one hand, a function can be reused for different objects. On the other hand, greater flexibility opens a place for mistakes.
|
||||
The concept of run-time evaluated `this` has both pluses and minuses. On the one hand, a function can be reused for different objects. On the other hand, the greater flexibility creates more possibilities for mistakes.
|
||||
|
||||
Here our position is not to judge whether this language design decision is good or bad. We'll understand how to work with it, how to get benefits and evade problems.
|
||||
Here our position is not to judge whether this language design decision is good or bad. We'll understand how to work with it, how to get benefits and avoid problems.
|
||||
```
|
||||
|
||||
## Internals: Reference Type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue