title: Is an array of ints actually implemented as an array of ints in JavaScript / V8?
body: <p>There is claim in <a href="https://ryanpeden.com/how-do-javascript-arrays-work-under-the-hood/" rel="nofollow noreferrer">this article</a> that an array of ints in JavaScript is implemented by a C++ array of ints.</p>
  <p>However; According to <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number" rel="nofollow noreferrer">MDN</a> unless you specifically use BigInts, in JavaScript all numbers are repressed as doubles.</p>
  <p>If I do:</p>
  <pre><code>cont arr = [0, 1, 2, 3];
  </code></pre>
  <p>What is the actual representation in the V8 engine?</p>
  <p>The code for V8 is <a href="https://github.com/v8/v8/blob/master/src/builtins/builtins-array.cc" rel="nofollow noreferrer">here on github</a>, but I don't know where to look:</p>