Node.js - URL and Query String Handling
What will be the output of this Node.js code?
const myUrl = new URL('https://example.com:8080/path?search=test#frag');
console.log(myUrl.hostname);
console.log(myUrl.port);
console.log(myUrl.pathname);
console.log(myUrl.search);
console.log(myUrl.hash);