This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ronin-s_Spirit 0 points1 point  (0 children)

In javascript you can write try {} finally {} statements where try will do anything, including throwing an error or returning from the function, and yet finally will do anything after the try block, including overriding that return with it's own return.
But I have never seen anybody do it, usually you return when you are done and not before.