WebURLURL.toStringmethod URL.toString#URL.toString(): stringThe toString() method of the URL interface returns a string containing the complete URL. Examples ##Example 1 const myURL = new URL('https://foo.example.org/bar'); console.log(myURL.toString()); // Logs "https://foo.example.org/bar" Return Type #stringSee #https://developer.mozilla.org/docs/Web/API/URL/toString
method URL.toString#URL.toString(): stringThe toString() method of the URL interface returns a string containing the complete URL. Examples ##Example 1 const myURL = new URL('https://foo.example.org/bar'); console.log(myURL.toString()); // Logs "https://foo.example.org/bar" Return Type #stringSee #https://developer.mozilla.org/docs/Web/API/URL/toString