-
Notifications
You must be signed in to change notification settings - Fork 228
Reference Type #304
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
Merged
joaquinelio
merged 20 commits into
javascript-tutorial:master
from
maksumi:referenceType
Jul 21, 2020
Merged
Reference Type #304
Changes from 16 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
17b5327
Traducción de Reference Type
827a48a
Update 1-js/99-js-misc/04-reference-type/2-check-syntax/solution.md
f459aff
Update 1-js/99-js-misc/04-reference-type/2-check-syntax/solution.md
90dcbca
Update 1-js/99-js-misc/04-reference-type/2-check-syntax/solution.md
16fc3ae
Update 1-js/99-js-misc/04-reference-type/3-why-this/solution.md
88604af
Update solution.md
60f27d1
Update solution.md
18cfb4c
Update 1-js/99-js-misc/04-reference-type/article.md
a08a5d7
Update 1-js/99-js-misc/04-reference-type/article.md
9fdf550
Update 1-js/99-js-misc/04-reference-type/article.md
a57880d
Update 1-js/99-js-misc/04-reference-type/article.md
06b8de6
Update 1-js/99-js-misc/04-reference-type/article.md
6b51296
Update 1-js/99-js-misc/04-reference-type/article.md
dc5f7b4
Update 1-js/99-js-misc/04-reference-type/article.md
53802ac
Actualizado
302b965
Update 1-js/99-js-misc/04-reference-type/article.md
892c569
Update 1-js/99-js-misc/04-reference-type/2-check-syntax/solution.md
1edd325
Update 1-js/99-js-misc/04-reference-type/2-check-syntax/solution.md
f7e3cc4
Update 1-js/99-js-misc/04-reference-type/article.md
af64ee5
Merge branch 'master' into referenceType
vplentinax File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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,20 @@ | ||
|
||
Here's the explanations. | ||
Aquí está la explicación. | ||
|
||
1. That's a regular object method call. | ||
1. Esta es una llamada común al método del objeto | ||
2. Lo mismo, aquí los paréntesis no cambian el orden de las operaciones, el punto es el primero de todos modos. | ||
|
||
2. The same, parentheses do not change the order of operations here, the dot is first anyway. | ||
|
||
3. Here we have a more complex call `(expression).method()`. The call works as if it were split into two lines: | ||
3. Aquí tenemos una llamada más compleja `(expression).method()`. La llamada funciona como si se dividiera en dos líneas: | ||
|
||
```js no-beautify | ||
f = obj.go; // calculate the expression | ||
f(); // call what we have | ||
f = obj.go; // Calcula la expresión | ||
f(); // Llama a lo que tenemos | ||
``` | ||
|
||
Here `f()` is executed as a function, without `this`. | ||
|
||
4. The similar thing as `(3)`, to the left of the dot `.` we have an expression. | ||
Aquí `f()` se ejecuta como una función, sin `this`. | ||
|
||
To explain the behavior of `(3)` and `(4)` we need to recall that property accessors (dot or square brackets) return a value of the Reference Type. | ||
4. Lo mismo que `(3)`, a la izquierda del punto `.` tenemos una expresión. | ||
|
||
Any operation on it except a method call (like assignment `=` or `||`) turns it into an ordinary value, which does not carry the information allowing to set `this`. | ||
Para explicar el funcionamiento de `(3)` y `(4)` necesitamos recordar que los accesores de propiedad (punto o corchetes) devuelven un valor del Tipo de Referencia. | ||
|
||
Cualquier operación en él excepto una llamada al método (como asignación `=` o `||`) lo convierte en un valor ordinario que no transporta la información que permite establecer `this`. |
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
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
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,2 +1,2 @@ | ||
|
||
# Miscellaneous | ||
# Misceláneo |
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.
Uh oh!
There was an error while loading. Please reload this page.