diff options
| author | Alexey Pyltsyn <lex61rus@gmail.com> | 2021-10-20 13:28:52 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-20 13:28:52 +0300 |
| commit | 1386fed7d38652d5848d315927e7e23a66cffd13 (patch) | |
| tree | eb4b9adfec3f46c77304a1b9461d44357c8164c8 /files/ru/web/javascript/reference/global_objects/function/length | |
| parent | b0f32a46245b1033098a5a9826a7818fa4e65dde (diff) | |
| download | translated-content-1386fed7d38652d5848d315927e7e23a66cffd13.tar.gz translated-content-1386fed7d38652d5848d315927e7e23a66cffd13.tar.bz2 translated-content-1386fed7d38652d5848d315927e7e23a66cffd13.zip | |
[RU] Remove `name` attribute from headings (#2788)
Diffstat (limited to 'files/ru/web/javascript/reference/global_objects/function/length')
| -rw-r--r-- | files/ru/web/javascript/reference/global_objects/function/length/index.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/files/ru/web/javascript/reference/global_objects/function/length/index.html b/files/ru/web/javascript/reference/global_objects/function/length/index.html index b3054d6f4e..31334c5765 100644 --- a/files/ru/web/javascript/reference/global_objects/function/length/index.html +++ b/files/ru/web/javascript/reference/global_objects/function/length/index.html @@ -10,21 +10,21 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/length --- <div>{{JSRef("Global_Objects", "Function")}}</div> -<h2 id="Summary" name="Summary">Сводка</h2> +<h2 id="Summary">Сводка</h2> <p>Свойство <code><strong>length</strong></code> определяет количество аргументов, ожидаемых функцией.</p> <div>{{js_property_attributes(0, 0, 1)}}</div> -<h2 id="Description" name="Description">Описание</h2> +<h2 id="Description">Описание</h2> <p>Свойство <code>length</code> является свойством объекта функции и указывает, сколько аргументов ожидает функция, то есть, количество формальных параметров. Это количество не включает {{jsxref("rest_parameters", "остаточные параметры", "", 1)}}. В отличие от него, свойство {{jsxref("Functions_and_function_scope/arguments/length", "arguments.length")}} является локальным для функции и предоставляет количество аргументов, реально переданных в функцию.</p> -<h3 id="Data_property_of_the_Function_constructor" name="Data_property_of_the_Function_constructor">Свойство данных конструктора <code>Function</code></h3> +<h3 id="Data_property_of_the_Function_constructor">Свойство данных конструктора <code>Function</code></h3> <p>Конструктор {{jsxref("Global_Objects/Function", "Function")}} сам является объектом {{jsxref("Global_Objects/Function", "Function")}}. Его свойство данных <code>length</code> имеет значение 1. Атрибуты свойства: записываемое: <code>false</code>, перечисляемое: <code>false</code>, настраиваемое: <code>true</code>.</p> -<h3 id="Property_of_the_Function_prototype_object" name="Property_of_the_Function_prototype_object">Свойство объекта прототипа <code>Function</code></h3> +<h3 id="Property_of_the_Function_prototype_object">Свойство объекта прототипа <code>Function</code></h3> <p>Свойство <code>length</code> объекта прототипа {{jsxref("Global_Objects/Function", "Function")}} имеет значение 0.</p> -<h2 id="Examples" name="Examples">Примеры</h2> +<h2 id="Examples">Примеры</h2> <pre class="brush: js">console.log(Function.length); /* 1 */ console.log((function() {}).length); /* 0 */ @@ -33,7 +33,7 @@ console.log((function(a, b) {}).length); /* 2 и так далее */ console.log((function(...args) {}).length); /* 0, остаточные параметры не считаются */ </pre> -<h2 id="Specifications" name="Specifications">Спецификации</h2> +<h2 id="Specifications">Спецификации</h2> <table class="standard-table"> <tbody> <tr> @@ -73,10 +73,10 @@ console.log((function(...args) {}).length); /* 0, остаточные пара </tbody> </table> -<h2 id="Browser_compatibility" name="Browser_compatibility">Совместимость с браузерами</h2> +<h2 id="Browser_compatibility">Совместимость с браузерами</h2> <p>{{Compat}}</p> -<h2 id="See_also" name="See_also">Смотрите также</h2> +<h2 id="See_also">Смотрите также</h2> <ul> <li>{{jsxref("Global_Objects/Function", "Function")}}</li> </ul> |
