You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alert(f.__proto__.__proto__==Object.prototype); // true, наследует от Object
96
96
```
97
97
98
-
## Primitives
98
+
## Примитивы
99
99
100
-
The most intricate thing happens with strings, numbers and booleans.
100
+
Самое сложное происходит со строкам, числами и булевым типом.
101
101
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`, которые предоставят методы и после чего исчезнут.
103
103
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`.
105
105
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.
Специальные значения`null`и`undefined`стоят особняком. У них нет, объектов-оберток, так что методы и свойства им недоступны. Также у них нет соответствующих прототипов.
0 commit comments