URL Builder Function
NodeJS
Easy
3 views
Problem Description
Build a URL for meetcode search with query params.
Output Format
Print URL string.
Official Solution
const u = new URL('https://meetcode.com/search');
u.searchParams.set('q', 'node');
u.searchParams.set('page', '1');
console.log(u.toString());
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!