![]() |
In URLSearchParams interface, the toString() method returns a query string which is suitable for use in a URL. Syntax: URLSearchParams.toString() Return:Returns the search parameters serialized as a string(with Characters percent-encoded). Example 1:
Output: 'foo=1&bar=2&par=4' Example 2: To create parameters directly
Output: par=1&bar=2 par=1&bar=2 Supported Browsers:
|
Reffered: https://www.geeksforgeeks.org
Node.js |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 11 |