await
The await keyword is used inside an async function to pause the execution of that function until a promise is resolved. It allows you to work with asynchronous code in a more synchronous-like manner, making it easier to manage and reason about asynchronous operations. When await is used, the function will wait for the promise to settle (either resolve or reject) and then continue executing, returning the resolved value or throwing an error if the promise is rejected.