ered'>
<span class='kw'>let</span> <span class='ident'>dog</span> <span class='op'>=</span> <span class='string'>&quot;hachiko&quot;</span>;
<span class='kw'>let</span> <span class='ident'>hachi</span> <span class='op'>=</span> <span class='kw-2'>&amp;</span><span class='ident'>dog</span>[<span class='number'>0</span>..<span class='number'>5</span>];</pre>

<!-- But note that these are _byte_ offsets, not _character_ offsets. So -->

<!-- this will fail at runtime: -->

<p>しかし、注意しなくては�