A URL that cannot change. Each setter throws a TypeError. searchParams gives a copy, so a change to it has no effect on the URL.
URL
TypeError
searchParams
Optional
A
URLthat cannot change. Each setter throws aTypeError.searchParamsgives a copy, so a change to it has no effect on the URL.