JavaScript Symbol.prototype Property

The JavaScript Symbol.prototype symbol is used to produce the prototype for the symbol constructor.

Note: Symbol.prototype is the parent of all symbol objects and parent of Symbol.prototype is obect.prototype.

Syntax

Parameters

No parameters

Return value

The prototype for the symbol constructor.

Browser Support

Chrome32
Safari8
Firefox29
Opera19

Example 1

Test it Now

Output:

JavaTpoint

Example 2

Test it Now

Output:

10





Latest Courses