Javatpoint Logo
Javatpoint Logo

JavaScript handler.getPrototypeOf() Method

The handler.getPrototypeOf() method is a trap for the internal method. If target is not extensible, then this method returns the same value as Object.getPrototypeOf(target).

Syntax

Parameters

target: The target object.

Return value

This method returns an object or null.

Browser Support

Chrome NO
Edge NO
Firefox 49
Opera NO

Example 1

Test it Now

Output:

true true true

Example 2

Test it Now

Output:

true

Example 3

Test it Now

Output:

true

Next TopicJavaScript handler




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA