Uint8Array Example

Store byte values using Uint8Array.

Preview

Code

<script>
let arr = new Uint8Array(4);

arr[0] = 10;
arr[1] = 20;

console.log(arr);
</script>

More JS Typed Arrays Examples (7)