[JS] URL 파싱
const link: string = 'https://www.daum.net'; const url: URL = new URL(link); console.log(url); // output /* URL { __proto__: URL { href: 'https://www.daum.net/', origin: 'https://www.daum.net', protocol: 'https:', username: '', password: '', host: 'www.daum.net', hostname: 'www.daum.net', port: '', pathname: '/', search: '', searchParams: URLSearchParams {}, hash: '', toJSON: ƒ toJSON(), toStrin..