-
-
Save AliceWonderland/b0912755892c362bf303872486f20109 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