What is decodeuri(), encodeuri() in javascript?



What is decodeuri(), encodeuri() in javascript?..

Answer / Lalit Kumar Singh

decodeURI(): It is a built-in JavaScript function used to decode a URI (Uniform Resource Identifier) that was encoded using escape() or encodeURIComponent(). The decoded string may contain spaces and other special characters.nencodeURI(): It is also a built-in JavaScript function used to encode a URI that contains special characters, making it safe for use in URLs. Some of the special characters are: space (", ', (, ), ,, /, ?, :, @, =, +, $, %, !, *, ;, ', ', ', '<, '>', '|'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What is the need of javascript?

1 Answers  


What are the Non-primitive data types in JavaScript?

1 Answers  


When selecting the states by giving the country as input using ajax cal, how can we ensure that every time it is hitting the DB and fetching the data? Many time it may load from the cache.

1 Answers   CTS, GE,


How to add buttons in javascript?

1 Answers  


How fast can you learn coding?

1 Answers  


How do we add javascript onto a web page?

1 Answers  


What do ellipses mean in javascript?

1 Answers  


What is a reverse string?

1 Answers  


What is javascript hoisting?

1 Answers  


java pgm for reads a file(text file) and removes all the spaces then the text and write this back into the same file. e.g: (Input) _______ chennai is fourth biggest city in india. (output) _______ chennaiisfourthbiggestcityinindia.

1 Answers  


How to test a string as a literal and as an object ?

1 Answers  


What are two-way data binding and one-way data flow, and how are they different?

1 Answers  


Categories