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

Chrome49
Edge12
Firefox18
Opera36

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





Latest Courses