Promise
Promise in JS got three states – resolve, reject and pending. Following example shows a reject state. Another example with resolve status Type the below in Chrome console and you will get the response in JSON format.
Promise in JS got three states – resolve, reject and pending. Following example shows a reject state. Another example with resolve status Type the below in Chrome console and you will get the response in JSON format.
The idea here is to discuss some of the ES6 Java script titbits and just a simple comparison of the conventional way of doing things and much better way of doing things using ES 6 way:) I found this easier to check code quicker – https://stephengrider.github.io/JSPlaygrounds/ For Loop Map Filter Filter – another interesting example …