TypedArray.byteOffset property in JavaScript


The byteOffset property of the TypedArray represents the offset of the current object.

Syntax

Its Syntax is as follows

typedArray.byteOffset();

Example

 Live Demo

<html>
<head>
   <title>JavaScript Example</title>
</head>
<body>
   <script type="text/javascript">
      var buffer = new ArrayBuffer(156);
      var float32 = new Float32Array(buffer);
      document.write(float32.byteOffset);
   </script>
</body>
</html>

Output

0

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 25-Jun-2020

22 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements