WebURLURL.protocolproperty URL.protocolThe protocol property of the URL interface is a string that represents the protocol scheme of the URL and includes a trailing :. Examples ##Example 1 const myURL = new URL('https://example.org/foo'); console.log(myURL.protocol); // Logs "https:" Type #stringSee #https://developer.mozilla.org/docs/Web/API/URL/protocol
property URL.protocolThe protocol property of the URL interface is a string that represents the protocol scheme of the URL and includes a trailing :. Examples ##Example 1 const myURL = new URL('https://example.org/foo'); console.log(myURL.protocol); // Logs "https:" Type #stringSee #https://developer.mozilla.org/docs/Web/API/URL/protocol