Node.js - URL and Query String Handling
What is wrong with this code snippet?
const myUrl = URL('https://example.com');
console.log(myUrl.hostname);const myUrl = URL('https://example.com');
console.log(myUrl.hostname);new keyword to instantiate an object.new will throw a TypeError.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions