This blog post is a quick reminder of how try-finally works.
Question: what is the output the following code?
var count = 0; function foo() { try { return count; } finally { count++; } } console.log(foo()); console.log(count);
0 1