An ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer. You can create it as below:
let buffer = new ArrayBuffer(16); // create a buffer of length 16
alert(buffer.byteLength); // 16
To manipulate an ArrayBuffer, we need to use a view object.
//Create a DataView referring to the buffer
let view = new DataView(buffer);
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.