Javatpoint Logo
Javatpoint Logo

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 JavaTPoint]

Example 2

Test it Now

Output:

[object Array]
[object Boolean]

Next TopicJavaScript Symbol




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA