Skip to content

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

```

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.

Wir können zudem sehen, das solch eine zusammenhängende Expression syntakitisch gesehen der Aufruf des Objekt `{ go: ... }` ist, als eine Funktion mit dem Argument `(user.go)`. Und genau das passiert in der selben Zeile mit `let user`, sodass das Objekt `user` nicht einmal definiert wurde. Darum der Fehler.

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:

```

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.

1. Das ist ein regulärer Aufruf der dem Objekt zugehörigen Methode.

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