Question 1
Consider the below JavaScript program.
function main() { var count = 0; function increment(num = count++) { count += num; } increment(); increment(2); increment(); console.log(count);}main();What will be the output of the above program?
3
4
7
8
6