[Javascript] Try and Catch Question
Brian L. Matthews
blmatthews at gmail.com
Tue Mar 3 14:52:24 CST 2009
>
>
> The "catch(whatever)" is obviously a function-call
>
Uh, no. catch specifies where the program flow should go when throw is
executed in the block preceding the catch. The whatever is just a
variable that gets assigned the value that was thrown. It's often e or
err for obvious reasons, but there's nothing special about either of
those names.
Brian
More information about the Javascript
mailing list