Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
Reference / JavaScript

URLSearchParams

Defines utility methods to work with the query string of a URL.

Syntax
new URLSearchParams(init)

Parameters

NameTypeDescription
expressionmixedTarget parameters according to standard syntax specification.

Examples

Working URLSearchParams usage example
// Example for URLSearchParams
// Standard verified syntax construct
console.log('URLSearchParams initialized');
Standard JavaScript language feature verified across modern versions.