ECMAScript 2015 (ES6) has many new features, but one of the best features was the official introduction of Promises.
Promises allow you to write clean non-callback-centric code. Even if you never write your own promise, knowing how they work is incredibly important, since many newer parts of the JavaScript API use promises instead of callbacks.
Have a look at this video to learn how to define and use promises.
#TechFerment #JavaScript #ECMAScript
--------------------------------------------------------------------------------------
Connect with us at:
Website: http://techferment.com/
Twitter: / techferment
Facebook: / techferment
Instagram: / techferment
LinkedIn: / techferment
GitHub: https://github.com/TechFerment
Medium: / techferment
See you all very soon. Till then, Take care, Stay Safe.