JavaScripthand handler.set() MethodThe handler.set method is an assignment of a value to a property value. The set can be iterator in the insertion order. It is a collection of items which are unique. If an assignment succeeded, then return true. Otherwise, returns false. An Iterator is an object which defines a sequence and potentially a return value upon its termination. SyntaxParameterstarget: The target object. property: Name or Symbol of the property. value: New value of the property. receiver: This is usually the proxy itself. A set handler assignment indirectly, via the prototype chain or various other ways. Return valueReturn a Boolean value. Browser Support
Example 1Test it NowOutput: a= 1 b= 2 c= 30 Example 2Test it NowOutput: in set PROXY METHOD Example 3Test it NowOutput: false property set: a = 10 Next TopicJavaScript handler |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India