---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# BigUint64Array()

The **`BigUint64Array()`** typed array constructor creates a
new `BigUint64Array` object, which is, an array of 64-bit unsigned integers
in the platform byte order. If control over byte order is needed, use
[`DataView`](../DataView/DataView.mdx) instead. The contents are initialized to `0n`. Once
established, you can reference elements in the array using the object's methods, or by
using standard array index syntax (that is, using bracket notation).

## Syntax

```js
new BigUint64Array()
new BigUint64Array(length)
new BigUint64Array(typedArray)
new BigUint64Array(object)

new BigUint64Array(buffer)
new BigUint64Array(buffer, byteOffset)
new BigUint64Array(buffer, byteOffset, length)
```

> **Note:** `BigUint64Array()` can only be constructed with `new`. Attempting to call it without `new` throws a [`TypeError`](..//TypeError/TypeError.mdx).

### Parameters

See [`TypedArray`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#parameters).

### Exceptions

See [`TypedArray`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#exceptions).
