const p = new URLSearchParams('a=1&b=2')
[...p.entries()] // β [['a','1'],['b','2']]entries() returns an iterator of [key, value] pairs identical to the default iterator.
params.forEach(callback) calls the callback for each entry with (value, key, params).
Challenge: Use forEach() to collect all keys.