const u = new URL('https://example.com')
u.pathname = '/new'
u.href // β 'https://example.com/new'Setting properties like pathname updates the URL in-place.
url.toJSON() returns the serialized URL as a string (same as href).
Challenge: Verify the return type of toJSON().