The decodeURI() function accepts a string value representing an encoded URI, decodesit and, returns the resultant string.
Syntax
Its Syntax is as follows
decodeURI('https://www.qries.com/');
Example
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result1 = decodeURI('https://www.qries.com/');
document.write(result1);
document.write("<br>");
var result2 = decodeURI('https://www.tutorialspoint.com/');
document.write(result2);
</script>
</body>
</html>
Output
https://www.qries.com/
https://www.tutorialspoint.com/