Skip to content

Commit 7a354a8

Browse files
committed
UPDATE
1 parent 906c9c8 commit 7a354a8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

JS/JS-br.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -482,15 +482,13 @@ myDate.test()
482482
483483
Contudo, ES6 não é compátivel com todos os navegadores, então usamos o Babel para compilar esser código.
484484
485-
Se chamar `myDate.test()` com o código compilado,
486-
487-
If call `myDate.test()` with compiled code, you’ll be surprised to see that there’s an error:
485+
Se chamar `myDate.test()` com o código compilado, você vai ficar surpreso de ver que existe um erro:
488486
489487
![](https://user-gold-cdn.xitu.io/2018/3/28/1626b1ecb39ab20d?w=678&h=120&f=png&s=32812)
490488
491-
Because there are restrictions on the low-level of JS, if the instance isn’t constructed by `Date`, it can’t call functions in `Date`, which also explains from another aspect that `Class` inheritance in ES6 is different from the general inheritance in ES5 syntax.
489+
Porque existem restrições no baixo nível do JS, se a instância não for construida pelo `Date`, ele não pode chamar funções no `Date`, que também explica a partir de outro aspecto que herança de `Class` no ES6 é diferente das heranças gerais na sintaxe do ES5.
492490
493-
Since the low-level of JS limits that the instance must be constructed by `Date` , we can try another way to implement inheritance:
491+
Uma vez o baixo nível dos limites do JS que a instância deve ser construido pelo `Date`, nós podemos tentar outra maneira de implementar herança:
494492
495493
```js
496494
function MyData() {

0 commit comments

Comments
 (0)