Having complete control of your files at any time is vital to alleviate your daily tasks and increase your productivity. Achieve any goal with DocHub features for document management and practical PDF editing. Gain access, change and save and integrate your workflows along with other secure cloud storage.
DocHub provides you with lossless editing, the chance to use any format, and safely eSign papers without searching for a third-party eSignature software. Make the most from the document management solutions in one place. Check out all DocHub functions today with the free account.
hey guys hey going my name is DOM and today I what I talked about the apply method in JavaScript so the apply method is a method of the function object and basically it allows you to call a function but instead of passing in the arguments as a comma-separated list youre passing them in as an array instead and I also lets you specify the value of the this keywords lets just start this by showing with an example so lets define a new function up here and call this function sum this function will just return the result of the two arguments a and then B okay inside the body will just say return a plus B so pretty straightforward simple function alright we can actually call this function using the apply method passing in a and B as an array instead so down here lets call the apply method on these sum function so well say sum and then dot apply all right this method takes in two arguments the first one being the value of the this keyword well look at this later on all right so Im gonn