![]() |
VOOZH | about |
The Symbol.toStringTag is a well-known symbol and string-valued property in JavaScript which is used in the creation of the default string description of an object.
Syntax:
Symbol.toStringTagParameters: This does not take any parameter.
Return value: This returns the String Object.
Example 1: In this example, we will use Symbol toStringTag Property
[object String] [object String] [object Array] [object Number] [object Boolean] [object Boolean] [object Undefined] [object Null]
Example 2: In this example, we will use Symbol toStringTag Property
[object GeeksforGeeks]
Reference:https://devdocs.io/javascript/global_objects/symbol/tostringtag