TypedArray.name property in JavaScript


The name property of the TypedArray object represents the name of the typed array in string (format)i.e. one of Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array.

Syntax

Its Syntax is as follows

Float32Array.name;

Example

 Live Demo

<html>
<head>
   <title>JavaScript Example</title>
</head>
<body>
   <script type="text/javascript">
      var nameOfarray1 = Float32Array.name;
      document.write("name of array1: "+nameOfarray1);
      document.write("<br>");
      var nameOfarray2 = Int16Array.name;
      document.write("name of array2: "+nameOfarray2);
   </script>
</body>
</html>

Output

name of array1: Float32Array
name of array2: Int16Array

karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know

Updated on: 25-Jun-2020

18 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements