JavaScript decodeURIComponent()
JavaScript decodeURIComponent()
The decodeURIComponent() global method is used to decode a URI component. Its opposite is encodeURIComponent() global method.
Syntax:-
Its syntax is:- decodeURIComponent(uri)
Return:-
Its return is:- string of decoded URI
Further Explanation:-
Parameter | Description |
uri | Required. The URI to decode. |