diff options
Diffstat (limited to 'files/ru/web/javascript/reference/operators/yield/index.html')
-rw-r--r-- | files/ru/web/javascript/reference/operators/yield/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/files/ru/web/javascript/reference/operators/yield/index.html b/files/ru/web/javascript/reference/operators/yield/index.html index 82866c30ed..d30b1bbce5 100644 --- a/files/ru/web/javascript/reference/operators/yield/index.html +++ b/files/ru/web/javascript/reference/operators/yield/index.html @@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Operators/yield <p>{{EmbedInteractiveExample("pages/js/expressions-yield.html")}}</p> -<h2 id="Syntax" name="Syntax">Синтаксис</h2> +<h2 id="Syntax">Синтаксис</h2> <pre class="syntaxbox language-html notranslate"> [<em>rv</em>] = <strong>yield</strong> [[выражение]];</pre> @@ -35,7 +35,7 @@ translation_of: Web/JavaScript/Reference/Operators/yield <p>Во время остановки на операторе <code>yield</code>, выполнение кода в функции-генераторе не возобновится, пока не будет вызван метод <code>next()</code> возвращаемого функцией <a href="https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Generator">объекта-генератора</a>. Это предоставляет непосредственный контроль за выполнением генератора и возвратом его значений.</p> -<h2 id="Examples" name="Examples">Примеры</h2> +<h2 id="Examples">Примеры</h2> <p>Следующий фрагмент кода содержит определение функции-генератора и вспомогательной функции:</p> @@ -54,7 +54,7 @@ console.log(iterator.next()); // { value:2, done:false } console.log(iterator.next()); // { value:undefined, done:true } </pre> -<h2 id="Specifications" name="Specifications">Спецификации</h2> +<h2 id="Specifications">Спецификации</h2> <table class="standard-table"> <thead> @@ -78,11 +78,11 @@ console.log(iterator.next()); // { value:undefined, done:true } </tbody> </table> -<h2 id="Browser_compatibility" name="Browser_compatibility">Совместимость с браузерами</h2> +<h2 id="Browser_compatibility">Совместимость с браузерами</h2> <p>{{Compat("javascript.operators.yield")}}</p> -<h2 id="See_also" name="See_also">Смотрите также</h2> +<h2 id="See_also">Смотрите также</h2> <ul> <li><a href="/ru/docs/Web/JavaScript/Guide/The_Iterator_protocol">Итераторы</a></li> |