Home » JavaScript Symbol toString() Method

JavaScript Symbol toString() Method

by Online Tutorials Library

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(TutorAspire)  Symbol(Java)  

Example 2

Test it Now

Output:

Symbol(DBMS)  Symbol(TutorAspire)  

Next TopicJavaScript Symbol

You may also like