VOOZH about

URL: https://www.geeksforgeeks.org/node-js/node-js-urlsearchparams-append/

⇱ Node.js URLSearchParams.append() - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js URLSearchParams.append()

Last Updated : 11 Jul, 2025
In URLSearchParams interface, the append() method adds a key/value pair specified by user. Syntax:
URLSearchParams.append(name, value)
Parameters: name - Input the parameter name to append value - Input the parameter value to append Example1: Output:
https://example.com/?par=1&par1=3&bar=5
Example2: Output:
https://example.com/?par=1&bar=2
Supported Browsers:
  • Google Chrome
  • IE
  • Edge
  • Opera
  • Apple Safari
Comment
Article Tags:
Article Tags:

Explore