I always see "success" and "error" callback functions in JavaScript code and libraries.<p>Why aren't exceptions used more often, so that one would only need to pass a callback function, and wrap everything in a "try" statement?
This is quite good:
<a href="http://programmers.stackexchange.com/questions/144326/try-catch-in-javascript-isnt-it-a-good-practice" rel="nofollow">http://programmers.stackexchange.com/questions/144326/try-ca...</a>