so use the more common<p>for(let v of list) { console.log(&quot;foo&quot;); }<p>If you&#x27;re saying that &quot;initialize an array with a defined length&quot; should be &quot;initialize an empty array of 5 values of undefined&quot; then yeah, but you can also use:<p>let list = Array.from(Array(5));<p>as new Array(5) creates an array of length 5, but each is a &quot;hole&quot;<p>I know the syntax is similar to C# or other languages, but because it&#x27;s slightly different doesn&#x27;t mean it doesn&#x27;t bring anything to the table. JS or TS != C# in a browser the syntax is similar...