-
Notifications
You must be signed in to change notification settings - Fork 111
F.prototype #231
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
jonnathan-ls
merged 11 commits into
javascript-tutorial:master
from
flaviohblima:develop-function-prototype
Sep 18, 2023
Merged
F.prototype #231
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
2f6340c
FEAT: Translate F.prototype article, task and solution to pt.
flaviohblima 6ed9576
FIX: article/tasks reviews resolved. Translate missing task.
flaviohblima 75ce566
FIX: Resolving reviews.
flaviohblima 74f456d
Update 1-js/08-prototypes/02-function-prototype/4-new-object-same-con…
flaviohblima fa0c64e
Update 1-js/08-prototypes/02-function-prototype/4-new-object-same-con…
flaviohblima 4d86e7c
Update 1-js/08-prototypes/02-function-prototype/4-new-object-same-con…
flaviohblima 525cc2e
Update 1-js/08-prototypes/02-function-prototype/4-new-object-same-con…
flaviohblima 2157dd4
Update 1-js/08-prototypes/02-function-prototype/article.md
flaviohblima 7054535
Update 1-js/08-prototypes/02-function-prototype/article.md
flaviohblima e159873
refactor: applies the corrections requested in the second review of t…
jonnathan-ls 2e32549
refactor: translates pending texts in svg files
jonnathan-ls 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
12 changes: 6 additions & 6 deletions
12
1-js/08-prototypes/02-function-prototype/1-changing-prototype/solution.md
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,20 +1,20 @@ | ||
|
||
Answers: | ||
Respostas: | ||
|
||
1. `true`. | ||
|
||
The assignment to `Rabbit.prototype` sets up `[[Prototype]]` for new objects, but it does not affect the existing ones. | ||
A atribuição a `Rabbit.prototype` configura o `[[Prototype]]` para novos objetos, mas não afeta os objetos que já existem. | ||
|
||
2. `false`. | ||
|
||
Objects are assigned by reference. The object from `Rabbit.prototype` is not duplicated, it's still a single object referenced both by `Rabbit.prototype` and by the `[[Prototype]]` of `rabbit`. | ||
Objetos são atribuídos por referência. O objeto do `Rabbit.prototype` não é duplicado, ele continua sendo um único objeto referenciado por `Rabbit.prototype` e pelo `[[Prototype]]` do `rabbit`. | ||
|
||
So when we change its content through one reference, it is visible through the other one. | ||
Portanto, quando nós mudamos o seu conteúdo através de uma referência, ele fica visível para as outras. | ||
|
||
3. `true`. | ||
|
||
All `delete` operations are applied directly to the object. Here `delete rabbit.eats` tries to remove `eats` property from `rabbit`, but it doesn't have it. So the operation won't have any effect. | ||
Todas as operações de `delete` são aplicadas diretamente ao objeto. Neste caso, `delete rabbit.eats` tenta remover a propriedade `eats` do `rabbit`, mas ele não a tem. Assim, essa operação não tem nenhum efeito. | ||
|
||
4. `undefined`. | ||
|
||
The property `eats` is deleted from the prototype, it doesn't exist any more. | ||
A propriedade `eats` é deletada do protótipo, então ela realmente não existe mais. |
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
proto-constructor-animal-rabbit.svg: | ||
White Rabbit: | ||
text: Coelho Branco | ||
position: center |
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.