-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
base: master
Are you sure you want to change the base?
Conversation
Syntax check (Aufgabe)
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)
There was a problem hiding this 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. |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
Please make the requested changes. After it, add a comment "/done". |
Gibt es Fehler?