JavaScript Reflect.apply() MethodThe static Reflect.apply() method of JavaScript is used to call a function using the specified argument. SyntaxParametertarget: It is the target function to call. thisArgument: It is the value of this provided for the call to target. ArgumentsList: It is an array-like object specifying the argument with which target should be called. ReturnThe result of calling the given target function with the specified this value and arguments. ExceptionsThis method will throw a TypeError if the target is not callable. Example 1Output: Object { x: 33, y: 44 } Example 2Output: "hello" 55 Example 3Output: 45 "hegi" 4 "u" Next TopicJavaScript Reflect |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India