JavaScript Try and Catch inside a function

Javascript Try…catch statement to check if there is errors in a block of code.


Other examples in Trycatch (JavaScript Language)
Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 4.0