while and I found that some tutorials use async and await but cover things up with then and catch, is there a way to avoid then and catch entirely?
Of course
What do you mean by that?
I mean that async-await and then-catch are mutually exclusive
Instead of .then(), use await Instead of .catch(), use try {} catch {}
I see. This is what I'm looking for. So it's a different pair
Then how can we call async functions inside a sync function in the async-await syntax without makeshifts? It seems that Promise.resolve still resorts to .then()
Обсуждают сегодня