JavaScript handler.defineProperty() MethodThe handler.defineProperty() method can define the new properties. It can also modify the existing properties directly on an object. It is trap for Object.defineProper(). This method can be used in two situations.
SyntaxParametersTarget: The target object. Property: Retrieved property description. Descriptor: The property being defined or modified. Return valueThis method returns a Boolean Browser Support
Example 1Test it NowOutput: [object Object] Example 2Test it NowOutput: in defineProperty Example 3Test it NowOutput: Learn Java Script Proxt Method 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