JavaScript typedArray.name Property
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:
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