Last active
August 29, 2015 14:15
-
-
Save thomasfr/414b98224059d06d8db0 to your computer and use it in GitHub Desktop.
Revisions
-
Thomas Fritz revised this gist
Feb 12, 2015 . 1 changed file with 9 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,4 +5,12 @@ var foo = function(text, callback) { } callback("why don't you say hello?"); console.log("nobody likes me :("); } foo("hello", function(result) { console.log(result) }); foo("asdasdasd", function(result) { console.log(result) }); -
Thomas Fritz created this gist
Feb 12, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ var foo = function(text, callback) { if(text == "hello") { callback("hello world"); console.log("Someone said hello"); } callback("why don't you say hello?"); console.log("nobody likes me :("); }