- Notifications
You must be signed in to change notification settings - Fork30
Object methods, "this"#99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
26 commits Select commitHold shift + click to select a range
5acaad4
section translated
covalt19850b7cdf7
translated
covalt1985fc36130
1/3
covalt1985c27d811
almost done
covalt1985cec745d
translated
covalt19852c00ba5
typo
covalt1985f32d381
Small fixes
covalt1985682ad7a
Fix
covalt19853c6e3b2
last fixes
covalt198595071a1
translated
covalt1985c9f8bf6
translated
covalt1985528001f
fix
covalt1985c2246d4
translated
covalt19856c37606
translated
covalt19854d37377
translated
covalt1985bf914f1
translated
covalt1985fc8e2d0
translated
covalt1985c6e7d40
fix
covalt1985e619579
f
covalt1985fad7054
fix
covalt19854ce04d7
f
covalt198530fc462
f
covalt19851ce5947
f
covalt1985ef13202
f
covalt1985d8beb4e
f
covalt1985769f335
review fix
covalt1985File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
19 changes: 9 additions & 10 deletions1-js/04-object-basics/04-object-methods/2-check-syntax/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions1-js/04-object-basics/04-object-methods/2-check-syntax/task.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
21 changes: 10 additions & 11 deletions1-js/04-object-basics/04-object-methods/3-why-this/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
Oto wyjaśnienie. | ||
1.Jest to zwykłe wywołanie metody obiektu. | ||
2.Tak jak powyżej, nawiasy nie zmieniają tutaj kolejności wykonywania działań, kropka i tak ma pierwszeństwo. | ||
3.Tutaj mamy bardziej złożone wywołanie`(expression).method()`.Wywołanie działa tutaj tak jakby było rozbite na dwie linijki kodu: | ||
```js no-beautify | ||
f = obj.go; //przypisanie jako wartość zmiennej | ||
f(); //wywołanie stworzonej zmiennej | ||
``` | ||
`f()`jest tutaj wywoływane jako funkcja, bez `this`. | ||
4.Podobna sytuacja jak w `(3)`,po lewej stronie od kropki`.`mamy wyrażenie. | ||
Żeby wyjaśnić zachowanie `(3)` i `(4)` musimy przypomnieć sobie, że akcesory właściwości (kropki lub nawiasy kwadratowe) zwracają wartość Typu Referencji. | ||
Każda inna operacja niż wywołanie metody (jak przypisanie `=` lub `||`) zmienia Typ Referencji na zwykłą wartość, która nie zawiera informacji pozwalającej ustalić wartości `this`. |
6 changes: 3 additions & 3 deletions1-js/04-object-basics/04-object-methods/3-why-this/task.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions1-js/04-object-basics/04-object-methods/4-object-property-this/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions1-js/04-object-basics/04-object-methods/4-object-property-this/task.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions1-js/04-object-basics/04-object-methods/7-calculator/task.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions1-js/04-object-basics/04-object-methods/8-chain-calls/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions1-js/04-object-basics/04-object-methods/8-chain-calls/task.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.