Here “Symbol” is the symbol which is to be searched into the runtime-wide symbol registry.
Parameters: This function accepts a parameter “sym” which is the symbol for which the key is to be found.
Return value: This function returns a string representing the key for the given symbol is found in the global registry otherwise it returns undefined.
"Geeks" "123" "gfg" "789"
- Google Chrome
- Apple Safari