Created
October 2, 2020 12:19
-
-
Save nsacerdote/5150ef50708226455c6cc42b074379d2 to your computer and use it in GitHub Desktop.
This file contains 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
// 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