Web Workers allow developers to put long-running and computationally intensive tasks on the background without blocking the UI, making your app even more responsive. What’s more, no tricks with the
setTimeout are needed in order to hack your way around the event loop.
When an async function is called, it returns a
Promise . When the async function returns a value, that’s not a
Promise , a
Promise will be automatically created and it will be resolved with the returned value from the function. When the
async function throws an exception, the
Promise will be rejected with the thrown value.
Inline caching is also the reason why it’s so important that objects of the same type share hidden classes. If you create two objects of the same type and with different hidden classes (as we did in the exam…