YouTip LogoYouTip

Jsref Tostring

# JavaScript toString() Method [![Image 3: String Object Reference Manual](#) JavaScript String Object](#) ## Example Return the value of a String object: var str = "Tutorial"; var res = str.toString(); The output of _res_ is: Tutorial [Try it Β»](#) * * * ## Definition and Usage The toString() method returns a string representing the value of the String object. * * * ## Browser Support The numbers in the table specify the first browser version that fully supports the property. | Method | | | | | | | --- | --- | --- | --- | --- | --- | | toString() | Yes | Yes | Yes | Yes | Yes | * * * ## Syntax string.toString() ## Parameters None. ## Return Value | Type | Description | | --- | --- | | String | A string. | ## Technical Details | JavaScript Version: | ECMAScript 1 | | --- | * * JavaScript String Object](#)
← Event OninputJsref Tolocalelowercase β†’