![]() |
In URLSearchParams interface, the set() method sets the value given as an input parameter.If there are several values matching the input parameter then it deletes the others and if the value does not exist then it creates it. Syntax: URLSearchParams.set(name, value) Parameters: Example 1:
Output: fo=4&bar=6&par=5 Example 2: Adding multiple parameters
OUTPUT: a=1&b=2&c=3&d=4 Supported Browsers:
|
Reffered: https://www.geeksforgeeks.org
Node.js |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 9 |