I have the following code:
function one() {
setTimeout(() => {
console.log('one');
}, 2000);
}
function two() {
console.log('two');
}
function three() {
console.log('three');
}
function wrapper() {
one();
two();
three();
}
wrapper();
This of course console logs them in the following order: two three one
Using async / await I'd like to console log them in the following order: one two three
I'm not sure how to achieve this.
Thanks