JavaScript unescape() Function Last Updated : 29 Dec, 2023 Comments Improve Suggest changes Like Article Like Report The Javascript unescape() function in JavaScript takes a string as a parameter and uses it to decode that string encoded by the escape() function. The hexadecimal sequence in the string is replaced by the characters they represent when decoded via unescape(). Note: The unescape() function is deprecated. Syntax:unescape(string)Parameters: string: This parameter holds the string that will be decoded. Return value: This function returns a decoded string. Note: This function only decodes the special characters, this function is deprecated. Prerequisite: JavaScript escape() Function Example 1: In this example, we will decode a simple encoded content using the unescape() function. javascript // Special character encoded with // escape function console.log(unescape("Geeks%20for%20Geeks%21%21%21")); // Print encoded string using escape() function // Also include exceptions i.e. @ and . console.log(unescape("To%20contribute%20articles%20contact" + "%20us%[email protected]")); OutputGeeks for Geeks!!! To contribute articles contact us [email protected] Example 2: In this example, we will decode a simple encoded content using the unescape() function. javascript // Special character encoded with // escape function let str = escape("Geeks for Geeks!!!"); console.log("Encoded : " + str); // unescape() function console.log("Decoded : " + unescape(str)) // The exception // @ and . not encoded. str = escape("To contribute articles contact us" + "at [email protected]") console.log("Encoded : " + str); // unescape() function console.log("Decoded : " + unescape(str)) OutputEncoded : Geeks%20for%20Geeks%21%21%21 Decoded : Geeks for Geeks!!! Encoded : To%20contribute%20articles%20contact%20usat%[email protected] Decoded : To contribute articles contact usat ...Exceptions: @ - + . / * _ We have a complete list of Javascript Functions, to check those please go through Javascript Function Complete reference article. Supported Browsers: Google Chrome 1 and aboveEdge 12 and aboveInternet Explorer 3 and aboveMozilla Firefox 1 and aboveSafari 1 and aboveOpera 3 and above Comment More infoAdvertise with us Next Article JavaScript unescape() Function S ShivamKD Follow Improve Article Tags : JavaScript Web Technologies javascript-functions Similar Reads JavaScript uneval() Function The uneval() is an inbuilt function in JavaScript that is used to create a string representation of the source code of an Object. Syntax: uneval(object) Note: This function has been DEPRECATED and is no longer recommended. Parameters: It accepts an object which may be a JavaScript expression or stat 2 min read Underscore.js _.unescape() function Underscore.js is a library in javascript that makes operations on arrays, string, objects much easier and handy. _.unescape() function is used to unescape a special character. It works opposite of _.escape() function. It do convert "&" to "&" and so on. Syntax: _.unescape(string); Parame 1 min read p5.js unchar() function The unchar() function in p5.js is used to convert a single-character string into its corresponding integer representation. This function is just opposite to the char() function. Syntax: unchar(value) Parameters: This function accepts single parameter value which is to be converted into its correspon 2 min read Difference between unescape() and escape() functions in JavaScript In this article, we will learn about the escape() & unescape() functions in JavaScript. We will understand the purpose of using both these functions through the example. Later in this article, we will discuss the difference between escape() & unescape() functions. Let's discuss the escape() 4 min read PHP | Imagick unsharpMaskImage() Function The Imagick::unsharpMaskImage() function is an inbuilt function in PHP which is used to sharpen an image. This function convolves the image with a Gaussian operator of the given radius and standard deviation. Syntax: bool Imagick::unsharpMaskImage( $radius, $sigma, $amount, $threshold, $channel ) Pa 1 min read JavaScript Array unshift() Method JavaScript Array unshift() Method is used to add one or more elements to the beginning of the given array. This function increases the length of the existing array by the number of elements added to the array.Syntax:array.unshift(element1, element2, ..., elementX);Parameters:element: This parameter 3 min read Node.js GM despeckle() Function The despeckle() function is an inbuilt function in the GraphicsMagick library which is used to reduce the speckles within an image. The function returns the true value of success. Syntax: despeckle() Parameters: This function does not accept any parameter. Return Value: This function returns the Gra 1 min read JavaScript program to find area of parallelogram A parallelogram is a geometric shape having four sides and its opposite sides are parallel and equal in length, and its opposite angles are also equal. We will use the formula area = base à height to return the area of a parallelogram in JavaScript. Formula Used// Formula for Area of Parallelogram a 2 min read TypeScript Array unshift() Method The Array.unshift() method in TypeScript is an inbuilt function used to add one or more elements to the beginning of an array. It modifies the original array and returns the new length of the array.Syntaxarray.unshift( element1, ..., elementN )ParameterThis method accepts n number of similar element 2 min read Like