Then you can write your own Deferred implementation. I didn't even know it was implemented in browsers.
const run = async () => { ... }
> If you want to write async code, use async / await.
That is a good idea, but it has nothing to do with arrow functions.
> It also allows you to do scope binding in a different manor
`this` binding in JS in classic functions is broken by design, so yes, that is the advantage of arrow functions.
Then you can write your own Deferred implementation. I didn't even know it was implemented in browsers.
How to read this? run is a constant that equals the result of calling function async() thas maps to something in curly brackets? This is confusing.> If you want to write async code, use async / await.
That is a good idea, but it has nothing to do with arrow functions.
> It also allows you to do scope binding in a different manor
`this` binding in JS in classic functions is broken by design, so yes, that is the advantage of arrow functions.