Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object methods, "this" #42

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

u-n-known
Copy link
Contributor

Gibt es Fehler?

@javascript-translate-bot javascript-translate-bot added the review needed Review needed, please approve or request changes label Apr 20, 2020
@javascript-translate-bot javascript-translate-bot requested a review from a team April 20, 2020 13:51
@u-n-known u-n-known changed the title Methoden des Objekt, "this" Object methods, "this" Apr 24, 2020
Syntax check (Update solution.md)
Explain the value of "this" (Update task.md)
Explain the value of "this" (Update solution.md)
Using "this" in object literal (Update task.md)
Using "this" in object literal (Update solution.md)
Create a calculator (Update task.md)
Chaining (Update task.md)
Chaining (Update solution.md)
Copy link

@mka4975 mka4975 left a comment

Choose a reason for hiding this comment

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

Generell gute Übersetzung jedoch einige Typos

@@ -11,19 +11,19 @@ let user = {
(user.go)() // error!
```

The error message in most browsers does not give us much of a clue about what went wrong.
Die Fehlermedlung in den meisten Browsern liefert einen nicht wirklich ein Verständnis dafür was schief lief.
Copy link

Choose a reason for hiding this comment

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

Die Fehlermeldung in den meisten Browsern liefert einem nicht wirklich ein Verständnis dafür, was schief lief.


If we insert the semicolon, all is fine:
Wenn wir ein Semikolon einfügen läuft alles wie gewollt:
Copy link

Choose a reason for hiding this comment

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

Wenn wir ein Semikolon einfügen, läuft alles wie gewollt:

@@ -34,4 +34,4 @@ let user = {
(user.go)() // John
```

Please note that parentheses around `(user.go)` do nothing here. Usually they setup the order of operations, but here the dot `.` works first anyway, so there's no effect. Only the semicolon thing matters.
Man beachte, dass die Parenthesen um `(user.go)` nichts bewirken. Normalerweise stellen sie die Reihenfolge der Operationen auf, aber hier agiert der Punkt `.` zuerst, weshalb sie keine Wirkung haben. Nur die Sache mit dem Semikolon zählt.
Copy link

Choose a reason for hiding this comment

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

Man beachte, dass die Klammern um (user.go) nichts bewirken.


2. The same, parentheses do not change the order of operations here, the dot is first anyway.
2. Das selbe, da Parenthesen hier nicht die Reihenfolge der Operationen beeinflusst. Der Punkt steht trotzdem davor.
Copy link

Choose a reason for hiding this comment

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

Das selbe, da Klammern hier nicht die Reihenfolge der Operationen beeinflussen.

@javascript-translate-bot javascript-translate-bot added changes requested Waiting for changes and /done from PR author and removed review needed Review needed, please approve or request changes labels Apr 28, 2020
@javascript-translate-bot

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes requested Waiting for changes and /done from PR author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants