What is the output of the following code?


let num = 0;

async function increment() { num += await 2; console.log(num); }

increment(); num += 1;


Option 1
2, 3
Option 2
1, 2
Option 3
1, 3
Option 4
2, 1
Do you see value in our efforts?

Devtools Tech is a free platform for Frontend Engineers. It takes a lot of time, effort, and finanical resources to keep the platform running. If you see any value in our work and would like to support us then you can do using the following options.