JavaScript Async | Async Await JavaScript Tutorial By WDH

JavaScript Async


JavaScript async
In this tutorial, you will learn about JavaScript async() Function, An async function is a function declared with the async keyword, and the await keyword is permitted within it. The async and await keywords enable asynchronous, promise-based behavior to be written in a cleaner style, avoiding the need to explicitly configure promise chains.
Example1
Output
After two seconds