try...catch Statement for JavaScript

This is the syntax for try...catch statement of JavaScript.

try
{
//process
}
catch(err)
{
//error handling
}

And you can add finally{} if you need.

thanks.

lynnnay@2009

Popular posts from this blog

npm refusing to install as a dependency of itself

How to call javascript functions from VB.NET and using WebBrowser Control