Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Simplest of all:

function dosomething(callback) {
    //some code-poetry;
    callback(1, 2, 3); //the callback is back!!!
}

function foo(a, b, c) {//this will be my callback
    alert("I got some parameters")
}

dosomething(foo); //the function call

Best explanation for a callback function:Check thisCheck this

A simple defination would be:the callback function is called at a certain point in the future when some code or a function completes execution.

Simplest of all:

function dosomething(callback) {
    //some code-poetry;
    callback(1, 2, 3); //the callback is back!!!
}

function foo(a, b, c) {//this will be my callback
    alert("I got some parameters")
}

dosomething(foo); //the function call

Best explanation for a callback function:Check this

A simple defination would be:the callback function is called at a certain point in the future when some code or a function completes execution.

Simplest of all:

function dosomething(callback) {
    //some code-poetry;
    callback(1, 2, 3); //the callback is back!!!
}

function foo(a, b, c) {//this will be my callback
    alert("I got some parameters")
}

dosomething(foo); //the function call

Best explanation for a callback function:Check this

A simple defination would be:the callback function is called at a certain point in the future when some code or a function completes execution.

added 356 characters in body
Source Link
HIRA THAKUR
  • 17.6k
  • 14
  • 59
  • 87

Simplest of all:

function dosomething(callback) {
    //some code-poetry;
    callback(1, 2, 3); //the callback is back!!!
}

function foo(a, b, c) {//this will be my callback
    alert("I got some parameters")
}

dosomething(foo); //the function call

Best explanation for a callback function:Check this

A simple defination would be:the callback function is called at a certain point in the future when some code or a function completes execution.

Simplest of all:

function dosomething(callback) {
    //some code-poetry;
    callback(1, 2, 3); //the callback is back!!!
}

function foo(a, b, c) {//this will be my callback
    alert("I got some parameters")
}

dosomething(foo); //the function call

Simplest of all:

function dosomething(callback) {
    //some code-poetry;
    callback(1, 2, 3); //the callback is back!!!
}

function foo(a, b, c) {//this will be my callback
    alert("I got some parameters")
}

dosomething(foo); //the function call

Best explanation for a callback function:Check this

A simple defination would be:the callback function is called at a certain point in the future when some code or a function completes execution.

added 5 characters in body
Source Link
HIRA THAKUR
  • 17.6k
  • 14
  • 59
  • 87

Simplest of all:

function dosomething(callback) {
    //some code-poetry;
    callback(1, 2, 3); //the callback is back!!!
}

function foo(a, b, c) {//this will be my callback
    alert("I got some parameters")
}

dosomething(foo); //the function call

Simplest of all:

function dosomething(callback) {
    //some poetry;
    callback(1, 2, 3); //the callback is back!!!
}

function foo(a, b, c) {//this will be my callback
    alert("I got some parameters")
}

dosomething(foo); //the function call

Simplest of all:

function dosomething(callback) {
    //some code-poetry;
    callback(1, 2, 3); //the callback is back!!!
}

function foo(a, b, c) {//this will be my callback
    alert("I got some parameters")
}

dosomething(foo); //the function call
added 26 characters in body
Source Link
HIRA THAKUR
  • 17.6k
  • 14
  • 59
  • 87
Loading
Source Link
HIRA THAKUR
  • 17.6k
  • 14
  • 59
  • 87
Loading