Skip to content

Tag Archives: JavaScript-Symbol

The symbol is a data type of primitive data type. The Symbol() function returns symbol value type. The value returned from Symbol() is unique. The… Read More
The Symbol.for() is an inbuilt function in JavaScript which is used to search for the given symbol into a runtime-wide symbol registry and if found… Read More
The Symbol.isConcatSpreadable is a well-known symbol used to configure if a given object should be flattened to its array elements while using the Array.prototype.concat() method.… Read More
The symbol.@@toPrimitive() is an inbuilt function in JavaScript which is used to converts a given symbol object to a primitive value. Syntax: Symbol()[Symbol.toPrimitive](hint); Here Symbol()… Read More
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… Read More
The symbol.valueOf() is an inbuilt function in JavaScript which is used to return the primitive value of a given symbol object. Syntax: Symbol().valueOf(); Here Symbol()… Read More
The Symbol.hasInstance is an inbuilt property in JavaScript which is used to determine if a given constructor object recognizes the object as its instance. Syntax:… Read More
The Symbol.keyFor() is an inbuilt function in JavaScript which is used to retrieve the key which has been shared with the given symbols and this… Read More
The symbol.toString() is an inbuilt function in JavaScript which is used to convert the specified symbol object into the string. Syntax: Symbol().toString(); Here Symbol() is… Read More
The symbol.description is an inbuilt property in JavaScript which is used to return the optional description of the specified symbol objects. Syntax: A.description; Here “A”… Read More