React.js

Fetch vs. Axios for making HTTP requests

What is API? Why do we need them? API stands for “Application Programming Interface,” which is a software intermediary that allows two applications to talk to each other. APIs simplify how developers integrate new application components into existing architecture, they help business and IT teams collaborate. Business needs often...

by piyush.yadav
Tag: call
29-Nov-2022

Technology

Difference between call() and apply() method of JavaScript

Many people get confused with these two functions in JavaScript, most of the time people think that we can pass an object in apply() and access it with this which is not possible with the call() method. But that is not the case, let's see an example which will make it more clear. Using call() method: [js] (function sum(a,b,c) { ...

by Suroor Wijdan
Tag: call
30-Jan-2013

Technology

Playing with call() using Groovy Metaprogramming

In groovy you can use "()" with any groovy object which in turn evaluates to invocation of call() method on that object. For example, the following are valid Groovy statements : [groovy] List myList=["one", "two"] myList() 10() 500 6+5 [name:"Bhagwat", profession:"Software engineer"] name ...

by Bhagwat Kumar
Tag: call
15-Sep-2011