Created
March 2, 2016 11:05
-
-
Save raphael-shin/303d7f07cfacb3a42eb6 to your computer and use it in GitHub Desktop.
Revisions
-
raphael-shin created this gist
Mar 2, 2016 .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,11 @@ var fs = require(“fs”); var asyncFunction = function(callback) { fs.exists(“./sample.file”, function (exists) { callback(exists); }); } asyncFunction(function(result) { console.log(result); });