Question: what is the output the following code?
var count = 0;
function foo() {
try {
return count;
} finally {
count++;
}
}
console.log(foo());
console.log(count);
The output is:
0
1
Thus: