This question may appear similar to others that have been answered, but I can't find an answer relating to JavaScript.
What is the difference between code in a finally block and code that comes after the entire try ... catch ... finally statement?
That is, what is the difference between this code:
try {
f(x);
}
catch(e) {
g(e);
}
finally {
h(y);
}
and this code:
try {
f(x);
}
catch(e) {
g(e);
}
h(y);