Skip to content

Commit 5eeb1ec

Browse files
committed
UPDATE
1 parent 7a354a8 commit 5eeb1ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JS/JS-br.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,9 @@ Object.setPrototypeOf(d, MyData.prototype)
502502
Object.setPrototypeOf(MyData.prototype, Date.prototype)
503503
```
504504
505-
The implementation idea of the above inheritance: first create the instance of parent class => change the original `__proto__` of the instance, connect it to the `prototype` of child class => change the `__proto__` of child class’s `prototype` to the `prototype` of parent class.
505+
A implementação da idéia acima sobre herança: primeiro cria uma instância da classe do pai => muda o original `__proto__` de instância, conectado ao `prototype` da classe do filho => muda o `__proto__` da classe do filho `prototype` para o `prototype` da classe do pai.
506506
507-
The inheritance implement with the above method can perfectly solve the restriction on low-level of JS.
507+
A herança de implementação com o método acima pode perfeitamente resolve a restrição no baixo nível do JS.
508508
509509
510510
# Deep and Shallow Copy

0 commit comments

Comments
 (0)