What is Javascript async?
Javascript's async keyword is used to define asynchronous functions.It allows the execution of code to pause while waiting for asynchronous operations to complete.
When a function is declared as async, it automatically returns a promise.
Inside an async function, the await keyword is used to pause execution until promises are resolved or rejected.
Using async and await in JavaScript simplifies handling asynchronous operations by eliminating the need for complex callback or promise chaining.
It enhances code readability and makes it easier to write and maintain asynchronous code.