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.

ES 6 Javascript

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 – For Loop Map Filter Filter – another interesting example …

ES 6 Javascript Read More »