const p = new URLSearchParams()
p.set('q', 'hello world')
p.toString() // β 'q=hello+world'URLSearchParams automatically encodes special characters in values.
params.getAll(name) always returns an array β even for keys that don't exist it returns [] (not null).
Challenge: Verify the distinction: get() returns null for missing keys, while getAll() returns [].