Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Frontend
→
Advanced JavaScript Interview Questions in Frontend
→
What is the use of decodeURI() and encodeURI()?
1.
What is the use of decodeURI() and encodeURI()?
Answer»
S.no
decodeURI()
encodeURI()
1.
The decodeURI() function works reverse to the encodeURI(),
TAKING
an encoded string and then replacing the
TOKENS
with the regular characters.
encodeURI() is used to pass the string
VALUE
that the user
REQUIRES
to
CONVERT
. This function returns the URL encoded value.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
How to get the current URL with JavaScript?
What are the difference between JavaScript and jQuery?
How we can add title of the page by JavaScript?
How to get value of an element by class in JavaScript ?
How to clone an object in Javascript?
How can you do a character count in Javascript?
What is design pattern in JavaScript? Explain
Explain export & import in JavaScript?
What is singleton class in JavaScript? Explain
What is the difference between Arrow function and normal function?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies