Uint8Array JavaScript

const uint8array = new Uint8Array(5);
uint8array[0] = 0x00;
uint8array[1] = 0x66;
uint8array[2] = 0x99;
uint8array[3] = 0xaa;
uint8array[4] = 0xff;

console.log(uint8array[4]); // 255
SunflowerToad