Demystifying Promises vs Callbacks

Demystifying Promises vs Callbacks

Aren’t Promises just regular Callbacks? What are the pros/cons of using one over the other? Promises vs Callbacks? Questions like these bothering you? Not anymore! Before we actually go dive in deeper, lets quickly remind ourselves the basic definitions of these terms and what they are meant to accomplish. Callbacks: A Callback is a any function which is passed as a parameter to another function […]

Read Me Leave comment

Top Fascinating Uses of the Spread Operator

Top Fascinating Uses of the Spread Operator

The Spread Operator ES2016 brings us many many goodies, one of which I came across a couple of days ago is the Spread Operator. I have become a big fan of it, not just because of its utility but also as it helps me to shorten my code. So what is it exactly? Simply put, the spread operator allows an expression(that could be an array/object) […]

Read Me Leave comment