The hash string starting with a # of the URL, if present. When setting, if the string does not begin with a # it will be added, and the value
Host (domain name) portion of the URL
StaticparseCreates a new URL object with provided URL.
A string representing an absolute URL or a relative reference to a base URL. If url is a relative reference, base is required.
Optionalbase: stringA string representing the base URL to resolve against if url is a relative reference.
URL objects are used as a convenience in parsing values out of a URL string. This implementation closely mirrors the Web API's
URLobject for compatibility purposesExample