Created
June 9, 2020 14:55
-
-
Save jsmanifest/9149683b41d9c9ea0391b4c90c48e5e3 to your computer and use it in GitHub Desktop.
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 getDate(callback) { | |
return callback(new Date()) | |
} | |
function start(callback) { | |
return getDate(callback) | |
} | |
start(function (date) { | |
console.log(`Todays date: ${date}`) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment