[Solved] Async-Await or Promises with JavaScript functions [closed]
What you are really asking is how to implement a function after a promise is done. If so, then making the function an Async function will do the trick. For information on async-await check out Async/await. 2 solved Async-Await or Promises with JavaScript functions [closed]