**# asyncrhonous-javascript a repo for working async js **
Lesson objectives
-
explain what a callback is
a callback is a function that is passed to another function as an argument that gets executed at some point in the future
-
explain what a promise is
a promise is an object that might produce a value at some point in the future
-
explain the circumstances under which promises are better than callbacks
-promises should be used for all asynchronous tasks
-
explain what the .then() function does
-it is a method that is called after the completion of an async request