JavaScript handler.apply() MethodLast Updated : 17 Mar 2025 The handler.apply() method is used to trap for a function call. The value returned by the apply trap is also going to be used as the result of a function call through a proxy. SyntaxParameterstarget: The target object. thisArg: thisArg use for the call. argumentsList: The list of arguments used for the call. Return valueThis method can return any value. Browser Support
Example 1Output: First exam.. proxy value(23, 54) Example 2Output: in apply in x(direct1, direct2) in apply in x(add, add) in apply in x(string, string) Example 3Output: 56 68 Next TopicJavaScript handler |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India