
const url = new URL('http://example.com:12345/blog/foo/bar?startIndex=1&pageSize=10'); const { protocol, hostname, port, pathname, search } = url; console.log('protocol =>', protocol); console.log('hostname =>', hostname); console.log('port =>', por...
Full stack developer
Full stack developer (ReactJS, NodeJS, JavaScript, PHP, SQL)
Markdown supported · ⌘↵ to post
No responses yet.