I think I'm probably misunderstanding how to use async/await, but I'm struggling to find a solution that doesn't dive into promises.
I have an if statement that contains two functions. I need functionTwo to run only after functionOne has completed. adding async and await before them doesn't seem to work, but I don't think I'm a million miles away.
Any help would be great! Thank you!
if (someBoolean) {
functionOne();
functionTwo();
}
if (someBoolean) {
async functionOne();
await functionTwo();
}