What is escape() function in Javascript?

 Posted by Vishalneeraj-24503 on 5/16/2015 | Category: JavaScript Interview questions | Views: 171 | Points: 40
Answer:

escape() function is used to encode the string to convert it as portable string so that it can be sent across any network to any computer which supports ASCII characters.
This function encodes special characters,with the exception of @ * + - / . _

Syntax:
escape(string_expr);

Where string_expr is the string to be encoded .


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response