[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString [Back]  [Original]

TypedArray.prototype.toString() - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

TypedArray.prototype.toString()

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2017 1.

TypedArray toString() . Array.prototype.toString() .

In this article

const uint8 = new Uint8Array([10, 20, 30, 40, 50]);

const uint8String = uint8.toString();

console.log(uint8String.startsWith("10"));
// Expected output: true

js
toString()

.

.

Array.prototype.toString() . , .

js
const uint8 = new Uint8Array([1, 2, 3]);
//  
console.log(uint8.toString()); // 1,2,3
//  
console.log(`${uint8}`); // 1,2,3

Specification
ECMAScript 2027 LanguageSpecification
# sec-%typedarray%.prototype.tostring


Web Proxy Viewer  |  New URL  |  Original Page