diff options
Diffstat (limited to 'files/ru/web/javascript/reference/global_objects/string/slice/index.html')
-rw-r--r-- | files/ru/web/javascript/reference/global_objects/string/slice/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/files/ru/web/javascript/reference/global_objects/string/slice/index.html b/files/ru/web/javascript/reference/global_objects/string/slice/index.html index 5b6f3895c4..021c1839ae 100644 --- a/files/ru/web/javascript/reference/global_objects/string/slice/index.html +++ b/files/ru/web/javascript/reference/global_objects/string/slice/index.html @@ -35,7 +35,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/slice <h3 id="Возвращаемое_значение">Возвращаемое значение</h3> -<p>Новая строка, содержащая извлеченную часть строки.</p> +<p>Новая строка, содержащая извлечённую часть строки.</p> <h2 id="Description" name="Description">Описание</h2> @@ -75,15 +75,15 @@ str.slice(0, -1); // вернёт 'Приближается утро' <p>В этом примере начальным индексом считается <code>11</code>-й символ с конца строки, а конечным - <code>16</code>-й с начала.</p> -<pre class="brush: js notranslate">str.slice(-11, 16); // вернет 'ается утр'</pre> +<pre class="brush: js notranslate">str.slice(-11, 16); // вернёт 'ается утр'</pre> <p>Здесь начальным индексом считается <code>6</code>-й символ от начала строки, а конечным - <font face="consolas, Liberation Mono, courier, monospace"><span style="background-color: rgba(220, 220, 220, 0.5);">7</span></font>-й с конца.</p> -<pre class="brush: js notranslate">str.slice(6, -7); // вернет 'жаетс'</pre> +<pre class="brush: js notranslate">str.slice(6, -7); // вернёт 'жаетс'</pre> <p>В этом примере оба индекса считаются с конца строки: <font face="consolas, Liberation Mono, courier, monospace"><span style="background-color: rgba(220, 220, 220, 0.5);">5</span></font>-й для начального индекса, <code>1</code>-й для конечного.</p> -<pre class="brush: js notranslate">str.slice(-5, -1); // вернет 'утро'</pre> +<pre class="brush: js notranslate">str.slice(-5, -1); // вернёт 'утро'</pre> <h2 id="Specifications" name="Specifications">Спецификации</h2> |