The Promise object is used for deferred and asynchronous computations. A Promise is in one of four states:
- pending: initial state, not fulfilled or rejected.
- fulfilled: successful operation.
- rejected: failed operation.
- settled: fulfilled or rejected
This demo gets a 'news feed' (see below) from data/feed.json using XHR.
View source on GitHub