Created
May 17, 2016 16:40
-
-
Save DerZyklop/b9810b1f86c7fc3be36a0959344208ff to your computer and use it in GitHub Desktop.
function declaration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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