English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
toString()The method returns the value of a String (String) object.
string.toString()
var str = "Hello World"; str.toString();Test and See‹/›
All browsers fully support the toString() method:
Method | |||||
toString() | Yes | Yes | Yes | Yes | Yes |
Return Value: | Represents the string of the calling object |
---|---|
JavaScript Version: | ECMAScript 1 |