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