What is the output of the following code?
@VINAYAK VISHWANATH GOSAIN
let num = 0;
async function increment() { num += await 2; console.log(num); }
increment(); num += 1;
console.log(num);
Option 1
2, 3
Option 2
1, 2
Option 3
1, 3
Option 4
2, 1
let num = 0;
async function increment() { num += await 2; console.log(num); }
increment(); num += 1;
console.log(num);
2, 3
1, 2
1, 3
2, 1