95
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
Output:
Symbol(TutorAspire) Symbol(Java)
Example 2
Output:
Symbol(DBMS) Symbol(TutorAspire)
Next TopicJavaScript Symbol