JavaScript Symbol.keyFor() MethodThe JavaScript Symbol.keyFor() method uses the global symbol registry to look up the key for the symbol. So it doesn't work for non-global symbols. If the symbol is not global, it won't be able to find it and return undefined. SyntaxParametersSymbol(required): The symbol to find a key. Return valueA string representing the key for the given symbol if one is found on the global registry Browser Support
Example 1Test it NowOutput: JavaTpoint Java Example 2Test it NowOutput: true Done Next TopicJavaScript Symbol |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India