Skip to content

Instantly share code, notes, and snippets.

@nsacerdote
Created October 2, 2020 12:19
Show Gist options
  • Save nsacerdote/5150ef50708226455c6cc42b074379d2 to your computer and use it in GitHub Desktop.
Save nsacerdote/5150ef50708226455c6cc42b074379d2 to your computer and use it in GitHub Desktop.
// setTimeout receives a callback function, in this example the callback is "logger"
// setTimeout will call the function we gave, after the specified amount of time (3000 ms)
let logger = () => log('Dishes are done!');
setTimeout(logger, 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment