Created
April 12, 2017 05:31
-
-
Save anonymous/2765f560f3f055ecdd9cf7529cfc45d5 to your computer and use it in GitHub Desktop.
6.4 Function Logger created by smillaraaq - https://repl.it/HGHz/1
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
function functionLogger(myFunc, myFuncParam){ | |
myFunc(myFuncParam); | |
} | |
function sayHello(person){ | |
console.log("Hello " + person +"!"); | |
} | |
function sayGoodbye(person){ | |
console.log("Bye " + person +"!"); | |
} | |
functionLogger(sayGoodbye, "Patrick"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment