escape() function in Javascript

This function is used to encode a string value. Thereby making it portable over the network to any destination device that supports ASCII characters.

Syntax : escape(string)

Some Exceptions : * @ – _ + . /

Example : document.write(escape(“!Seekyourcareer.in!”))
Output : %21Seekyourcareer.in%21

Note:
Avoid using this function as it have been depreciated from Web Standards. But still some browsers may support it. So this functionality may cease to work anytime. Use encodeURI() or encodeURIComponent() instead.