Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Created July 10, 2020 16:21
Show Gist options
  • Save sandrabosk/f2fba949e7837f9886742a49f0026916 to your computer and use it in GitHub Desktop.
Save sandrabosk/f2fba949e7837f9886742a49f0026916 to your computer and use it in GitHub Desktop.
  1. Write a function study() that receives one argument (string) and outputs (using console.log()) I am studying ____. after 3 seconds (use setTimeout() and pass as a second argument 3000 (which is 3 seconds)).
  2. Write a second function, chill(), that doesn't receive any arguments and outputs Finished with studying, now chilling..
  3. Using just gained skills, make sure the second function doesn't execute before the first one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment