JavaScript Object.getPrototypeOf() MethodThe Object.getPrototypeOf() method of JavaScript returns the prototype (i.e. the value of the internal [[Prototype]] property) of the specified object. Syntax:Parameterobj: It is an object whose prototype is to be returned. Return value:This method returns the prototype of the given object. If there are no inherited properties, this method will return null. Browser Support:
Example 1Output: true Example 2Output: true false Example 3Output: true true Next TopicJavaScript Objects |
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