const u = new URL('https://example.com')
u.origin // β 'https://example.com'origin combines the protocol and host without path, search, or hash.
url.searchParams is a live URLSearchParams object. Mutating it propagates back to url.href (and url.search).
Challenge: Mutate url.searchParams and verify url.href reflects the change.