Sawtaytoes
3/1/2019 - 6:35 AM

Synchronous Callback

const executeSynchronously = (
  callback,
) => {
  // Do some processing...
  callback()
}

executeSynchronously(() => {
  console
  .log('Hello World!')
})