Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
deivuss331 merged 26 commits intojavascript-tutorial:masterfromcovalt1985:master
Jun 21, 2022

Conversation

@covalt1985
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commentedJun 1, 2021
edited
Loading

CLA assistant check
All committers have signed the CLA.

W większości przeglądarek wiadomość o błędzie nie zawiera zbyt wielu szczegółów mówiących co poszło nie tak.

The error message in most browsers does not give us much of a clue about what went wrong.
**Błąd wystąpił ponieważ nie ma średnika po`user = {...}`.**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

missing space between "po" and "`user..."

```

Then we can also see that such a joint expression is syntactically a call of the object`{ go: ... }`as a function with the argument`(user.go)`.And that also happens on the same line with`let user`,so the`user`object has not yet even been defined, hence the error.
Teraz widzimy, że taka składnia jest w zasadzie wywołaniem funkcji`{ go: ... }`z argumentem`(user.go)`.W dodatku wywołanie to znajduje się w tej samej linijce co`let user`,więc do obiekt`user`nie został jeszcze nawet zdefiniowany, dlatego pojawia się błąd.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The sense of the first sentence has changed a bit. It should be something like: "Teraz widzimy, że taka składnia jest w zasadzie wywołaniem objektu{ go: ... } jako funkcji z argumentem...".

Also, please remove redunand "do" word from that part of the second sentence: "więc do obiektuser nie został jeszcze..."

---

#Syntax check
#Sprawdzian ze składni
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It should be more like: "Sprawdzenie składni"

1.Jest to zwykłe wywołanie metody obiektu.

2.The same, brackets do not change the order of operations here, the dot is first anyway.
2.Tak jak powyżej. Nawiasy nie zmieniają tutaj kolejności wykonywania działań. Kropka ma pierwszeństwo.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Please try to avoid splitting one original sentence into some smaller ones while translating.

So please change that to: "Tak jak powyżej, nawiasy nie zmieniają tutaj kolejności wykonywania działań, kropka i tak ma pierwszeństwo."

---

#Explain the value of"this"
#Określ wartość"this":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Please remove redunand ":" sign at the end of line.

Wartość`this`jest tu ustalona wyłącznie dla tej funkcji. Bloki kodu i obiekty nie są w tym przypadku brane pod uwagę.

So`ref:this`actually takes current`this`of the function.
Zatem`ref:this`jest równoznaczne z`this`funkcji.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Please change "ref:this" into "ref: this" just for clarity.

---

#Using"this"in object literal
#"this"w literałach obiektowych
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

"Używaniethis w obiektach" sounds better to me.

Poniższa funkcja`makeUser`zwraca obiekt.

What is the result of accessing its`ref`? Why?
Jaki będzie rezultat dostępu do jego`ref` ? I dlaczego?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

please remove space betweenref and question mark

Często się zdarza, że metoda obiektu do poprawnego działania potrzebuje dostępu do informacji zawartej w tym samym obiekcie.

For instance, the code inside`user.sayHi()`may need the name of the`user`.
DLa przykładu, kod wewnątrz`user.sayHi()`może wymagać imienia użytkownika`user`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

word "DLa" should have only first letter capital

Możliwe jest również uzyskanie dostępu do obiektu bez używania`this`,przez odwołanie się do niego za pomocą zmiennej z zewnątrz:

```js
```js run
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

please remove run

@javascript-translate-bot

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

@covalt1985
Copy link
ContributorAuthor

/done

@deivuss331deivuss331 merged commit1545116 intojavascript-tutorial:masterJun 21, 2022
@javascript-translate-bot

Thank you 💖 I updated the Progress Issue#1 🎉 🎉 🎉

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@deivuss331deivuss331deivuss331 approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@covalt1985@CLAassistant@javascript-translate-bot@deivuss331

[8]ページ先頭

©2009-2025 Movatter.jp