The URL constructor takes the relative path first, then the base URL as the second argument.
Step 2: Validate the options
new URL('/about', 'https://example.com') correctly uses new URL('/about', 'https://example.com'). new URL('https://example.com', '/about') reverses parameters, C misses leading slash, D uses only absolute URL without base.
Final Answer:
new URL('/about', 'https://example.com') -> Option A
Quick Check:
URL(relative, base) = B [OK]
Quick Trick:URL constructor: first relative, then base URL [OK]
Common Mistakes:
Swapping relative and base URL arguments
Omitting leading slash in relative path
Master "URL and Query String Handling" in Node.js
9 interactive learning modes - each teaches the same concept differently