Skip to content

Commit 5f2549c

Browse files
committed
Translate Primitives part
1 parent c8551b0 commit 5f2549c

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
@@ -95,16 +95,16 @@ alert(f.__proto__ == Function.prototype); // true
9595
alert(f.__proto__.__proto__ == Object.prototype); // true, наследует от Object
9696
```
9797

98-
## Primitives
98+
## Примитивы
9999

100-
The most intricate thing happens with strings, numbers and booleans.
100+
Самое сложное происходит со строкам, числами и булевым типом.
101101

102-
As we remember, they are not objects. But if we try to access their properties, then temporary wrapper objects are created using built-in constructors `String`, `Number`, `Boolean`, they provide the methods and disappear.
102+
Как мы помним, они не объекты. Но если мы попытаемся получить доступ к их свойствам, тогда будет создан временный объект-обертка с использованием встроенных конструкторов `String`, `Number`, `Boolean`, которые предоставят методы и после чего исчезнут.
103103

104-
These objects are created invisibly to us and most engines optimize them out, but the specification describes it exactly this way. Methods of these objects also reside in prototypes, available as `String.prototype`, `Number.prototype` and `Boolean.prototype`.
104+
Эти объекты создаются невидимо для нас, и большая часть движков оптимизирует этот процесс, но спецификация описывает это именно таким образом. Методы этих объектов также находятся в прототипах, доступных как `String.prototype`, `Number.prototype` и `Boolean.prototype`.
105105

106-
```warn header="Values `null` and `undefined` have no object wrappers"
107-
Special values `null` and `undefined` stand apart. They have no object wrappers, so methods and properties are not available for them. And there are no corresponding prototypes too.
106+
```warn header="Значения `null` и `undefined` имеют объектов-оберток"
107+
Специальные значения `null` и `undefined` стоят особняком. У них нет, объектов-оберток, так что методы и свойства им недоступны. Также у них нет соответствующих прототипов.
108108
```
109109
110110
## Changing native prototypes [#native-prototype-change]

0 commit comments

Comments
 (0)