how to wait for the promise to complete code example
Example: wait for promise javascript
const userCount = await getUserCount();
console.log(userCount); // 12345
const userCount = await getUserCount();
console.log(userCount); // 12345