JavaScript ArrayBuffer Reference Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report ArrayBuffer is used to represent a generic, fixed-length raw binary data buffer. The contents of an ArrayBuffer cannot be directly manipulated and can only be accessed through a DataView Object or one of the typed array objects. These Objects are used to read and write the contents of the buffer. Syntax:new ArrayBuffer(byteLen)Parameters: It takes one parameter.byteLen: It is the byte length of the ArrayBuffer.Return Type: It returns an ArrayBuffer object.Example: This example creates an ArrayBuffer object JavaScript const buffer = new ArrayBuffer(8); const view = new Int32Array(buffer); console.log(view); OutputInt32Array(2) [ 0, 0 ]The complete list of JavaScript ArrayBuffer is listed below:JavaScript ArrayBuffer Constructor: In JavaScript, a constructor gets called when an object is created using the new keyword.ConstructorDescriptionArrayBuffer()Returns the ArrayBuffer objectJavaScript ArrayBuffer Properties: A JavaScript property is a member of an object that associates a key with a value. Instance Property: An instance property is a property that has a new copy for every new instance of the class.Instance PropertiesDescriptionconstructorReturns the ArrayBuffer constructor function for the objectbyteLengthSpecifies the byte length of the ArrayBuffermaxByteLengthSpecified the max length to which the size of ArrayBuffer can be increased in bytesresizableReturns a boolean which tells whether the array can be resizedJavaScript ArrayBuffer Methods: JavaScript methods are the actions that can be performed on objects. There are two types of Number methods in JavaScript.Static Methods: If the method is called using the ArrayBuffer class itself then it is called a static method.Static MethodsDescriptionisView() It checks given an argument for the function is a typed array or not.Instance Methods: If the method is called on an instance of an ArrayBuffer then it is called an instance method.Instance MethodsDescriptionresize()Resizes the ArrayBuffer if possibleslice()Returns new ArrayBuffer with the sliced value Comment More info K kartik Follow Improve Article Tags : JavaScript Web Technologies Explore JavaScript BasicsIntroduction to JavaScript4 min readVariables and Datatypes in JavaScript6 min readJavaScript Operators5 min readControl Statements in JavaScript4 min readArray & StringJavaScript Arrays7 min readJavaScript Array Methods7 min readJavaScript Strings6 min readJavaScript String Methods9 min readFunction & ObjectFunctions in JavaScript5 min readJavaScript Function Expression3 min readFunction Overloading in JavaScript4 min readObjects in Javascript4 min readJavaScript Object Constructors4 min readOOPObject Oriented Programming in JavaScript3 min readClasses and Objects in JavaScript4 min readWhat Are Access Modifiers In JavaScript ?5 min readJavaScript Constructor Method7 min readAsynchronous JavaScriptAsynchronous JavaScript2 min readJavaScript Callbacks4 min readJavaScript Promise4 min readEvent Loop in JavaScript4 min readAsync and Await in JavaScript2 min readException HandlingJavascript Error and Exceptional Handling6 min readJavaScript Errors Throw and Try to Catch2 min readHow to create custom errors in JavaScript ?2 min readJavaScript TypeError - Invalid Array.prototype.sort argument1 min readDOMHTML DOM (Document Object Model)9 min readHow to select DOM Elements in JavaScript ?3 min readJavaScript Custom Events4 min readJavaScript addEventListener() with Examples9 min readAdvanced TopicsClosure in JavaScript4 min readJavaScript Hoisting6 min readJavascript Scope3 min readJavaScript Higher Order Functions7 min readDebugging in JavaScript4 min read Like