86
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
Output:
a:22b:42
Example 2
Output:
In get4523
Example 3
Output:
called: a100
Next TopicJavaScript handler