async function showAvatar() { // read await setTimeout(resolve, 3000); // read next 3s } showAvatar();