Skip to content

Commit c384b63

Browse files
committed
Translate Summary part
1 parent f2b46f5 commit c384b63

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

1-js/08-prototypes/03-native-prototypes/article.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ alert( obj.join(',') ); // Hello,world!
187187

188188
Одалживание методов гибкий способ, он позволяет смешивать функциональность разных объектов по необходимости.
189189

190-
## Summary
190+
## Итого
191191

192-
- All built-in objects follow the same pattern:
193-
- The methods are stored in the prototype (`Array.prototype`, `Object.prototype`, `Date.prototype` etc).
194-
- The object itself stores only the data (array items, object properties, the date).
195-
- Primitives also store methods in prototypes of wrapper objects: `Number.prototype`, `String.prototype`, `Boolean.prototype`. Only `undefined` and `null` do not have wrapper objects.
196-
- Built-in prototypes can be modified or populated with new methods. But it's not recommended to change them. Probably the only allowable cause is when we add-in a new standard, but not yet supported by the engine JavaScript method.
192+
- Все встроенные объекты следуют одному шаблону:
193+
- Методы хранятся в прототипах (`Array.prototype`, `Object.prototype`, `Date.prototype` и тд.).
194+
- Сами объекты хранят только данные (элементы массивов, свойства объектов, даты).
195+
- Примитивы также хранят свои методы в прототипах объектах-обертках: `Number.prototype`, `String.prototype`, `Boolean.prototype`. Только у значений `undefined` и `null` нет объектов-оберток.
196+
- Встроенные прототипы могут быть изменены или дополнены новыми методами. Но не рекомендуется менять их. Единственная допустимая причина, это когда добавляется новый метод из стандарта, но он еще не поддерживается движком JavaScript.

0 commit comments

Comments
 (0)