Created
March 20, 2016 01:54
-
-
Save JasonDeving/9c6bada527caf352929c to your computer and use it in GitHub Desktop.
callback
This file contains 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
var ifElse = function(condition, isTrue, isFalse){ | |
if(condition){ | |
isTrue(); | |
} else { | |
isFalse(); | |
} | |
}; | |
var logTrue = function(){ console.log(true); }; | |
var logFalse = function(){ console.log(false); }; | |
ifElse(true,logTrue,logFalse); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment