Home » JavaScript Symbol toStringTag Property

JavaScript Symbol toStringTag Property

by Online Tutorials Library

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

Test it Now

Output:

[object TutorAspire ]  

Example 2

Test it Now

Output:

[object Array]  [object Boolean]  

Next TopicJavaScript Symbol

You may also like