Skip to content

Instantly share code, notes, and snippets.

@jsmanifest
Created June 9, 2020 14:55
Show Gist options
  • Save jsmanifest/9149683b41d9c9ea0391b4c90c48e5e3 to your computer and use it in GitHub Desktop.
Save jsmanifest/9149683b41d9c9ea0391b4c90c48e5e3 to your computer and use it in GitHub Desktop.
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