Easy Tutorial
❮ Met Cssstyle Removeproperty Jsref Regexp Ncaret ❯

JavaScript toString() Method

JavaScript String Object

Example

Returns the value of a String object:

res Output result:


Definition and Usage

The toString() method returns a value representing the String object.


Browser Support

The numbers in the table specify the first browser version that fully supports the method.

Method
toString() Yes Yes Yes Yes Yes

Syntax

string.toString()

Parameter Values

Return Value

Type Description
String A string.

Technical Details

| JavaScript Version: | ECMAScript 1 | | --- | --- |


JavaScript String Object

❮ Met Cssstyle Removeproperty Jsref Regexp Ncaret ❯