filmov
tv
What is Promise? #shorts #angular #javascript #typescript #promise #angularjs

Показать описание
A promise is an object that may produce a single value sometime in the future with either a resolved value or a reason that it’s not resolved(for example, network error). It will be in one of the 3 possible states: fulfilled, rejected, or pending.
It's used to handle asynchronous operations. They provide an alternative approach for callbacks by reducing the callback hell and writing the cleaner code.
#javascript #javascriptengineer #developerskills #development #developer #typescript #angular #angularjs #typescript
It's used to handle asynchronous operations. They provide an alternative approach for callbacks by reducing the callback hell and writing the cleaner code.
#javascript #javascriptengineer #developerskills #development #developer #typescript #angular #angularjs #typescript