Skip to content

Commit 96d6300

Browse files
authored
Fix small spelling mistake
1 parent c6271b5 commit 96d6300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/04-object-basics/04-object-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ The result of a property access `user.hi` is not a function, but a value of Refe
316316

317317
When parentheses `()` are called on the Reference Type, they receive the full information about the object and it's method, and can set the right `this` (`=user` in this case).
318318

319-
Any other operation like assignment `hi = user.hi` discards the reference type as a whole, takes the value of `user.hi` (a function) and passes it on. So any further operation "looses" `this`.
319+
Any other operation like assignment `hi = user.hi` discards the reference type as a whole, takes the value of `user.hi` (a function) and passes it on. So any further operation "loses" `this`.
320320

321321
So, as the result, the value of `this` is only passed the right way if the function is called directly using a dot `obj.method()` or square brackets `obj[method]()` syntax (they do the same here).
322322

0 commit comments

Comments
 (0)