decodes a URI component.
decodeURIComponent ( encodedURI )
encodedURI - An encoded component of a URI (Uniform Resource Identifier).
A decoded version of the given encoded URI (Uniform Resource Identifier) component.
try {
const a = decodeURIComponent(
"https%3A%2F%2Furldecoder.net%2F%3Fa%3Djavascript-decodeURIComponent"
)
} catch(e) {
console.error(e);
}
https://urldecoder.net/javascript-decodeuricomponent