Node.js - URL and Query String Handling
What will be the output of this Node.js code?
const { URL } = require('url');
const base = 'https://example.com/folder/';
const url = new URL('page.html', base);
console.log(url.href);
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions