[Javascript] Try and Catch Question

MEM talofo at gmail.com
Mon Mar 2 06:16:02 CST 2009


Hi all, this is my first post, (so if anything is not right in the way I
post, please let me know).

 

 

When we use a try catch statement like this:

try {

     

} catch (e) {

     

}

 

Why do we need the ‘e’ ?

 

Well, I have seen also with ‘err’ etc, so I presume the point is to have
only something that represents the name error. But, what for? I mean,
normally in this kind of statements I never see that ‘e’ or ‘err’ being used
for nothing, I see no e=”ups error” or something. So, what is that e for?

 

 

Thanks a lot,

Márcio




More information about the Javascript mailing list