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

Chrome32
Safari8
Firefox29
Opera19

Example 1

Test it Now

Output:

[object JavaTPoint]

Example 2

Test it Now

Output:

[object Array]
[object Boolean]





Latest Courses