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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA