 number; if it were <code>1001</code> then it could only
over have the value <code>1001</code> and the statement <code>i = i + 1</code> would be illegal.</p>
<p>Other mutable locations are elements of array literals and object
literals:</p>
<p><pre class="typescript-code"><span class="tm-kw">const</span> <span class="tm-vr">nums</span> = [<span class="tm-num">1</span>, <span class="tm-num">2</span>, <span class="tm-num">3</span>]; <span class="tm-cmt">// 'nums' has type: number[]</span>
<span class="tm-vr">