promises
What are Promises?
Answer
The Promise
object represents the eventual completion (or failure) of an asynchronous operation, and its resulting value. An example can be the following snippet, which after 100ms prints out the result string to the standard output. Also, note the catch, which can be used for error handling. Promise
s are chainable.
Good to hear
Take a look into the other questions regarding
Promise
s!
Additional links
Last updated