Node.js - URL and Query String Handling
Find the mistake in this 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