The async keyword marks a function as asynchronous. Async functions always return a promise.
async function getData() {
return "Hello";
}
getData().then(console.log); // "Hello"
Inside async functions, you can use await to pause for promises.