8 ms·
No, that's not possible. Console.log(a) will always run and finish before your async function finishes in the example that you want.
by aurareturn 3y ago
No, that's not possible.
Console.log(a) will always run and finish before your async function finishes in the example that you want.