await can only be used in async functions . It is used for calling an async function and waits for it to resolve or reject. await blocks the execution of the code within the async function in which it is located.
await can only be used in async functions . It is used for calling an async function and waits for it to resolve or reject. await blocks the execution of the code within the async function in which it is located.