Open In App

JavaScript typedArray.name Property

Last Updated : 15 Feb, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

The typedArray.name is an inbuilt property in JavaScript that is used to represent a string value of the given typedArray constructor name. A list of different typed arrays is specified below:

Int8Array(); Int16Array(); Uint32Array();
Uint8Array(); Uint16Array(); Float32Array();
Uint8ClampedArray(); Int32Array(); Float64Array();

Syntax:

typedArray.name;

Parameters: It does not accept any parameter because it is a property not a function. 

Return value: It returns a string value of the given typedArray constructor name. 

JavaScript code to show the working of this function: 

Example :

javascript




// Returning the string value of the given
// typedArray constructor name.
console.log(Int8Array.name);
console.log(Uint8Array.name);
console.log(Uint8ClampedArray.name);
console.log(Int16Array.name);
console.log(Uint16Array.name);
console.log(Int32Array.name);
console.log(Uint32Array.name);
console.log(Float32Array.name);
console.log(Float64Array.name);


Output:

Int8Array
Uint8Array
Uint8ClampedArray
Int16Array
Uint16Array
Int32Array
Uint32Array
Float32Array
Float64Array

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads