I've been using the async
/await
keywords a lot lately with JavaScript Promise objects and I love it, but I don't understand what the purpose of the async
keyword really is.
Why is it necessary to use the async
keyword for functions that use await
?