1.

Which of the following is used to decode the encoded URI?(a) encodeURI()(b) encodeURIComponent()(c) decodeURI()(d) Server.URLEncode()I had been asked this question during a job interview.My question comes from URL Encoding in chapter HTML Images & Web Page Files of HTML

Answer»

Correct OPTION is (c) decodeURI()

To EXPLAIN I would say: ENCODEURI(), encodeURIComponent, decodeURI() are the JAVA Script function. encodeURI(), encodeURIComponent() are the functionsthat encode URL. decodeURI() is the function that decode the ENCODED URL.



Discussion

No Comment Found

Related InterviewSolutions