The lookupPrefix() method of the Node interface returns a string containing the prefix for a given namespace URI, if present, and null if not.
lookupPrefix()
null
MDN Reference
The
lookupPrefix()method of the Node interface returns a string containing the prefix for a given namespace URI, if present, andnullif not.MDN Reference