What is the use of decodeuri() and encodeuri()?
Answer / Avlokna Agarwal
The encodeURI() and decodeURI() functions in JavaScript are used to encode or decode a URI (Uniform Resource Identifier) so that it can be safely used in URLs, queries, and other places where special characters need to be represented as safe ASCII values. The encodeURI() function encodes the string for use in a URI, while decodeURI() decodes an already encoded URI.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the predefined functions in javascript?
Why jquery is used instead of javascript?
What is argument objects in javascript?
What is constructor?
Have you used any browser for debugging? If yes, how is it done?
what is event bubbling and event capturing in javascript?
What is the difference between window.onload and ondocumentready?
What is the Difference between HTML and DHTML
What are the variable naming conventions in javascript?
How to remove the event listener?
What is a noscript tag?
What is hoisting in javascript?