Javatpoint Logo
Javatpoint Logo

JavaScript Symbol.toString() Method

The JavaScript Symbol.toString() method purpose is to return a string representation of an object.

Syntax

Parameters

No Parameters.

Return value

A string representing the specified Symbol object.

Browser Support

Chrome 38
Safari 9
Firefox 36
Opera 25

Example 1

Test it Now

Output:

Symbol(JavaTpoint)
Symbol(Java)

Example 2

Test it Now

Output:

Symbol(DBMS)
Symbol(JavaTpoint)

Next TopicJavaScript Symbol




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA