JavaScript handler.getOwnPropertyDescriptor() MethodThe handler.getOwnPropertyDescriptor() method is a trap for Object.getOwnPropertyDescriptor(). It exists as an own property of the target object and the target object is not extensible. SyntaxParametersTarget: The target object. Prop: The name of the property whose description should be retrieved. Return valueThis method returns an object or undefined. Browser Support
Example 1Test it NowOutput: Java Script is a scripting language Example 2Test it NowOutput: Value : abc 10 Example 3Test it NowOutput: Java Script proxt : Own property 50 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