when the following js is executed, alert prints 2, and then alert 1. That is to say, finally, is executed first and then return. Is there any application scenario for this execution sequence?
function Test() {
var a = {b: 1}
try {
return a.b;
} finally {
a={b:2}
alert(""+a.b)
}
}
alert(Test())
</script>
</body>
</html>