93
JavaScript Symbol.toStringTag Properties
The JavaScript Symbol.toStringTag symbol is accessed internally by the Object.prototype.toString() method. It is used for the creation of the default string description of an object.
Syntax
Parameters
String
Return value
String Object.
Browser Support
Chrome | 32 |
Safari | 8 |
Firefox | 29 |
Opera | 19 |
Example 1
Output:
[object TutorAspire ]
Example 2
Output:
[object Array] [object Boolean]
Next TopicJavaScript Symbol