Home » JavaScript handler get() Method

JavaScript handler get() Method

by Online Tutorials Library

JavaScript handler.get() Method

The handler.get method is a trap for getting a property value. This method takes 3 arguments.

Syntax

Parameters

Target: The target object.

Property: Name of the property to get.

Receiver: The proxy or an object that inherits from the proxy.

Return value

This method can return any value.

Browser Support

Chrome 49
Edge 12
Firefox 18
Opera 36

Example 1

Test it Now

Output:

a:22b:42  

Example 2

Test it Now

Output:

In get4523  

Example 3

Test it Now

Output:

called: a100  

Next TopicJavaScript handler

You may also like