JS Built-ins
TypedArrayInt32Arraybeginner

Create Int32Array from Length

πŸ“– Usage Example
const arr = new Int32Array(4);
// Int32Array [0, 0, 0, 0]

Pass a length to create a typed array filled with zeros.

Create an Int32Array with a specified length. All elements are initialized to zero.

πŸ’‘ Hints (1)
  • β€’ Use new Int32Array(length)