How time-intensive is the use of try/catch in JavaScript? I have an application and I am using it in a function which is called a few hundred times. N
try
catch
In general, code executed inside a try block is expensive. But if you are invoking a try block on the order of a few hundred times, it's probably not an issue. If it were a few hundred thousand, you may want to re-think your design.