Skip to content

Commit 4d86e7c

Browse files
Update 1-js/08-prototypes/02-function-prototype/4-new-object-same-constructor/solution.md
Co-authored-by: Osvaldo Dias dos Santos <vadodsantos@yahoo.com>
1 parent fa0c64e commit 4d86e7c

File tree

1 file changed

+1
-1
lines changed
  • 1-js/08-prototypes/02-function-prototype/4-new-object-same-constructor

1 file changed

+1
-1
lines changed

1-js/08-prototypes/02-function-prototype/4-new-object-same-constructor/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ alert( user2.name ); // Pete (funcionou!)
1515

1616
Funcionou, porque `User.prototype.constructor == User`.
1717

18-
...Mas se alguém, por acaso, sobrescrever `User.prototype` e esquecer de recriar o `constructor` com referência ao próprio `User`, então o código iria falhar.
18+
...Mas se alguém, por acaso, sobrescrever `User.prototype` e se esquecer de recriar o `constructor` referenciando `User`, então o código irá falhar.
1919

2020
Por exemplo:
2121

0 commit comments

Comments
 (0)