JavaScript String toString() Method

Clash Royale CLAN TAG#URR8PPP
<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]-->
JavaScript String toString() Method
❮
Reference
❯
<!--
❮ JavaScript String Reference
-->Example
Return the value of a String object:
var str = "Hello World!";
var res = str.toString();<!--
The result res of will be:
Hello World!-->Try it Yourself »
Definition and Usage
The toString() method returns the value of a String object.
Browser Support
| Method | |||||
|---|---|---|---|---|---|
| toString() | Yes | Yes | Yes | Yes | Yes |
Syntax
string.toString()Parameters
| None. |
Technical Details
| Return Value: | A String, representing the value of a string |
|---|---|
| JavaScript Version: | ECMAScript 1 |
❮
Reference
❯
<!--
❮ JavaScript String Reference
-->