JavaScript uneval() Function Last Updated : 24 May, 2023 Comments Improve Suggest changes Like Article Like Report 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 statement. Return Value: It returns a string that represents the source code of the given Object. JavaScript examples to show the working of this function: Example 1: If the number is passed to the function uneval() then the function will return a string with the value of the object passed. javascript let obj = 2; console.log(eval(obj)); Output: 2 Example 2: If the char is passed to the function uneval() then the function will return a string with the value of the object passed. javascript let obj = '2'; console.log(uneval(obj)); Output: "2" Example 3: If the number is passed to the function uneval() then the function will return a string with the value of the object passed. javascript let obj = uneval(function func() { return 'Geeksforgeeks'; }); let func1 = eval(obj); console.log(func1()); Output: GeeksforGeeks Difference between eval() and uneval() functions: The uneval() function returns the source of a given object whereas the eval() function evaluates that source code in a different memory area. Note: Above codes will run only in the Firefox web browser. Comment More infoAdvertise with us Next Article JavaScript uneval() Function S Sakshi98 Follow Improve Article Tags : Misc JavaScript Web Technologies javascript-functions Practice Tags : Misc Similar Reads JavaScript Unary Operators JavaScript Unary Operators work on a single operand and perform various operations, like incrementing/decrementing, evaluating data type, negation of a value, etc.Unary Plus (+) OperatorThe unary plus (+) converts an operand into a number, if possible. It is commonly used to ensure numerical operati 4 min read JavaScript Arithmetic Unary Plus(+) Operator The Unary plus(+) operation is a single operand operator (which means it worked with only a single operand preceding or succeeding to it), which is used to convert its operand to a number, if it isn't already a number. Syntax: +Operand Below examples illustrate the Unary plus(+) Operator in JavaScri 1 min read JavaScript Arithmetic Unary Negation(-) Operator The Unary negation(-) operation is a single operand operator (which means it worked with only a single operand preceding or succeeding to it), which is used to convert its operand to a negative number, if it isn't already a negative number. Syntax: -Operand Example 1: This example shows the use of J 1 min read HashSet remove() Method in Java The HashSet remove() method in Java is used to remove a specific element from the set if it is present.Note: HashSet and the remove() were introduced in JDK 1.2 as part of the Collections Framework and are not available in earlier versions of Java (JDK 1.0 and JDK 1.1).Example 1: Here, the remove() 2 min read Deque element() method in Java The element() method of Deque Interface returns the element at the front the container. It does not deletes the element in the container. This method returns the head of the Deque. The method throws an exception when the Deque is empty. Syntax:  E element() Parameters: This method does not accepts 3 min read Like