ntinue">A generator function doesn&rsquo;t actually generate anything;
instead,
it creates an object that we can then ask for values repeatedly.
This gives us a way to have several generators in play at the same time.</p>
<p>Instead of a <code>while</code> loop it is much more common to use <code>for...of</code>,
which knows how to work with generators:</p>
<div class="code-sample lang-js" title="generator-vowels-for.js">
<div class="highlight"><pre><span></span><code><span class="k">for</span><span class="