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

String.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

String.prototype.toString()

Baseline Widely available

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

toString() , .

In this article

str.toString()

String toString(), Object; Object.prototype.toString(). String toString() , , String.prototype.valueOf().

: toString()

String:

js
var x = new String(", ");

console.log(x.toString()); //  ', '

Specification
ECMAScript 2027 LanguageSpecification
# sec-string.prototype.tostring


Web Proxy Viewer  |  New URL  |  Original Page