Skip to content

Instantly share code, notes, and snippets.

@DerZyklop
Created May 17, 2016 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DerZyklop/b9810b1f86c7fc3be36a0959344208ff to your computer and use it in GitHub Desktop.
Save DerZyklop/b9810b1f86c7fc3be36a0959344208ff to your computer and use it in GitHub Desktop.
function declaration
// Schlechter nachvollziebare trace-ausgaben im falle eines throw's:
someAjaxStuff(
function () {
console.log("Its working!");
},
function () {
console.log("Damn! :( ");
}
);
// Besser nachvollziebare trace-ausgaben im falle eines throw's:
someAjaxStuff(
function someAjaxStuffSuccess () {
console.log("Its working!");
},
function someAjaxStuffError () {
console.log("Damn! :( ");
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment