Call Vs Apply in JavaScript Last Updated : 03 Nov, 2025 Comments Improve Suggest changes 5 Likes Like Report The call() and apply() methods in JavaScript are used to invoke functions with a specified this value.call(): accepts arguments individually when invoking a function.apply(): accepts arguments as an array when invoking a function.call() MethodIt calls the method, taking the owner object as an argument. The keyword this refers to the 'owner' of the function or the object it belongs to. We can call a method that can be used on different objects. html <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h3>call() method</h3> <button onClick="fun()"> click </button> <p id="GFG"></p> <!-- Script to use call() method to call function --> <script> function fun() { let p = { fullName: function(addr1, addr2) { return this.fName + " " + this.lName + ", " + addr1 + ", " + addr2; } } let p1 = { fName:"GFGfName", lName: "GFGlName", } let x = p.fullName.call(p1, "India", "USA"); document.getElementById("GFG").innerHTML = x; } </script> </body> Syntax:object.objectMethod.call( objectInstance, arguments )JavaScript apply() MethodThe apply() method is used to write methods, which can be used on different objects. It is different from the function call() because it takes arguments as an array. HTML <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h3>JavaScript apply() method</h3> <button onClick="fun()"> click </button> <p id="GFG"></p> <script> function fun() { let p = { fullName: function(addr1, addr2) { return this.fName + " " + this.lName + ", " + addr1 + ", " + addr2; } } let p1 = { fName:"GFGfName", lName: "GFGlName", } let x = p.fullName.apply(p1, ["India", "USA"]); document.getElementById("GFG").innerHTML = x; } </script> </body> Syntax:object.objectMethod.apply(objectInstance, arrayOfArguments)Let us understand differences in a tabular formJavaScript call() MethodJavaScript apply() MethodIt is used to write such a method that can be used on different objects.It is used to write methods, which can be used on different objectsIt is a Predefined Method in JavaScript.Its return value is the result of the calling function along provided this value and arguments.It is used for an object to use a method that belongs to a different object.We can use a list with this function instead of the arrayThis method can also accept parameters.This method takes the parameter as an array Create Quiz Comment P PranchalKatiyar Follow 5 Improve P PranchalKatiyar Follow 5 Improve Article Tags : JavaScript Web Technologies javascript-functions JavaScript-Questions Explore JavaScript BasicsIntroduction to JavaScript4 min readVariables and Datatypes in JavaScript6 min readJavaScript Operators5 min readControl Statements in JavaScript4 min readArray & StringJavaScript Arrays7 min readJavaScript Array Methods7 min readJavaScript Strings5 min readJavaScript String Methods9 min readFunction & ObjectFunctions in JavaScript5 min readJavaScript Function Expression3 min readFunction Overloading in JavaScript4 min readObjects in JavaScript4 min readJavaScript Object Constructors4 min readOOPObject Oriented Programming in JavaScript3 min readClasses and Objects in JavaScript4 min readWhat Are Access Modifiers In JavaScript ?5 min readJavaScript Constructor Method7 min readAsynchronous JavaScriptAsynchronous JavaScript2 min readJavaScript Callbacks4 min readJavaScript Promise4 min readEvent Loop in JavaScript4 min readAsync and Await in JavaScript2 min readException HandlingJavascript Error and Exceptional Handling6 min readJavaScript Errors Throw and Try to Catch2 min readHow to create custom errors in JavaScript ?2 min readJavaScript TypeError - Invalid Array.prototype.sort argument1 min readDOMHTML DOM (Document Object Model)8 min readHow to select DOM Elements in JavaScript ?3 min readJavaScript Custom Events4 min readJavaScript addEventListener() with Examples9 min readAdvanced TopicsClosure in JavaScript4 min readJavaScript Hoisting6 min readScope of Variables in JavaScript3 min readJavaScript Higher Order Functions7 min readDebugging in JavaScript4 min read Like