Posts for JavaScript Promise

Deven
Deven wrote

How to use Promise.reject() in JavaScript

In JavaScript,  Promises are used to denote an ongoing task which has not completed yet. It may Resolve with a result or Reject with an error. It can take an infinite amount of time to complete something internally. A promise may have more promises within it. Promises can be chained one after the another to […]

October 15, 2021 in Code examples

Using Promises to Make HTTP Requests in Angular

Promises in ECMAScript are very much identical to the promises we make in our daily life. We will be looking out how Angular handle promises. Before Getting Started with Typescript promise let’s understand JavaScript Promise: JavaScript Promise A promise is an object that may produce a single value some time in the future: either a […]

April 16, 2020 in Angular