try catch finally in javascript

     try catch and finally is used to handle all or some of the error when it occur.

try
This statement is contain the set of code for testing.

catch
This statement is execute if any error occur in try block.

finally
This statement always execute after execute the try or catch statement.



Example Program:- (Editor)


Editor is Loading...

Advertisement

Nhận xét

Bài đăng phổ biến từ blog này

How to set the SDK, NDK and JDK path to android studio?

physicsjs - Increase the restitution value for circle and retangle

Select all values from list box in a single click using javascript