Prototype methods, objects without __proto__ by diogoosz · Pull Request #482 · javascript-tutorial/pt.javascript.info
Repository navigation
Prototype methods, objects without __proto__ - #482
Merged
gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-prototype-methods Nov 21, 2026
Merged
Prototype methods, objects without __proto__ #482 gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-prototype-methods
Conversation
diogoosz commented Nov 8, 2026
Copy link Copy Markdown
Contributor
Tradução do artigo "Prototype methods, objects without proto " para o português, incluindo os exercícios.
Conforme comentado na #1 .
Translate "Prototype methods, objects without __proto__" article to P...
2df68b0
...ortuguese Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>gabifs reviewed Nov 12, 2026
View reviewed changes
Comment thread 1-js/08-prototypes/04-prototype-methods/article.md
Outdated
| @@ -1,31 +1,31 @@ | ||
|
|
||
| # Prototype methods, objects without __proto__ | ||
| # Métodos de prototype, objetos sem __proto__ |
View reviewed changes
Comment thread 1-js/08-prototypes/04-prototype-methods/article.md
Outdated
| O único uso de `__proto__` que não é malvisto é como uma propriedade ao criar um novo objeto : `{ __proto__: ... }`. | ||
|
|
||
| Although, there's a special method for this too : | ||
| Embora, também exista um método especial para isso : |
View reviewed changes
Comment thread 1-js/08-prototypes/04-prototype-methods/article.md
Outdated
| Isso é por motivos históricos . | ||
|
|
||
| The prototypal inheritance was in the language since its dawn, but the ways to manage it evolved over time . | ||
| A herança prototípica existia na linguagem desde o seu início, mas as formas de gerenciá-la evoluíram com o tempo . |
View reviewed changes
Comment thread 1-js/08-prototypes/04-prototype-methods/article.md
Outdated
| - Later, in the year 2015, `Object.setPrototypeOf` and `Object.getPrototypeOf` were added to the standard, to perform the same functionality as `__proto__`. As `__proto__` was de-facto implemented everywhere, it was kind-of deprecated and made its way to the Annex B of the standard, that is: optional for non-browser environments . | ||
| - Later, in the year 2022, it was officially allowed to use `__proto__` in object literals `{...}` ( moved out of Annex B), but not as a getter/setter `obj.__proto__` ( still in Annex B). | ||
| - A propriedade `prototype` de uma função construtora funciona desde tempos bem antigos. É a forma mais antiga de criar objetos com um prototype dado . | ||
| - Depois, no ano de 2012, `Object.create` apareceu no padrão. Isso deu a capacidade de criar objetos com um prototype dado, mas não oferecia a capacidade de obtê-lo/defini-lo. Alguns navegadores implementaram o acessor não padronizado `__proto__` , que permitia ao usuário obter/definir um prototype a qualquer momento, pra dar mais flexibilidade aos desenvolvedores . |
View reviewed changes
Comment thread 1-js/08-prototypes/04-prototype-methods/article.md
Outdated
| ``` | ||
|
|
||
| ... But that's usually fine for associative arrays. | ||
| ... Mas isso geralmente não é problema pra arrays associativos . |
Apply review feedback from @gabifs
7a3f058
- Standardize untranslated "prototype" -> "protótipo" in prose, matching the sibling chapters in this section (01-prototype- inheritance, 03-native-prototypes); kept `prototype` only for the literal property name and `[[Prototype]]`/`Object.prototype` code identifiers - Fix ungrammatical "Embora, também exista..." -> "Porém, também existe..." - Unify "herança prototípica" -> "herança prototipada", matching 01-prototype-inheritance - Unify "acessor não padronizado" -> "propriedade de acesso não padronizada", matching the term used later in the same article - Standardize informal "pra" to "para" Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
diogoosz commented Nov 21, 2026
Copy link Copy Markdown
Contributor
Author
|
Obrigado, @gabifs ! Apliquei tudo: padronizei "prototype"→"protótipo" na prosa (mantendo |
9025b32
into
javascript-tutorial : master
Nov 21, 2026
1 check passed
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment