WebURLURL.hostnameproperty URL.hostnameThe hostname property of the URL interface is a string that represents the fully qualified domain name of the URL. Examples ##const myURL = new URL('https://foo.example.org/bar'); console.log(myURL.hostname); // Logs "foo.example.org" Type #stringSee #https://developer.mozilla.org/docs/Web/API/URL/hostname
property URL.hostnameThe hostname property of the URL interface is a string that represents the fully qualified domain name of the URL. Examples ##const myURL = new URL('https://foo.example.org/bar'); console.log(myURL.hostname); // Logs "foo.example.org" Type #stringSee #https://developer.mozilla.org/docs/Web/API/URL/hostname