Which keywords are used to handle exceptions?



Which keywords are used to handle exceptions?..

Answer / Nikesh Gupta

"The try...catch blocks are used in JavaScript to handle exceptions (errors). The try block contains the code that may throw an exception, and the catch block contains the code that handles the exception."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What will be the output of the following code? //nfe (named function expression) var Foo = Function Bar() { return 7; }; typeof Bar();

1 Answers  


Are javascript variables global?

1 Answers  


why array is called the collection of similar datatypes?

1 Answers  


Is there any difference between javascript and jscript?

1 Answers  


What is meant by object oriented programming?

1 Answers  


What is the use of blur function?

1 Answers  


Explain few difference between null, undefined or undeclared javascript variable?

1 Answers  


Name the different types of pop up boxes in Javascript?

1 Answers  


What are self Executing Functions?

1 Answers  


Is JavaScript case sensitive? Give an example?

1 Answers  


How to trigger a postback on an updatepanel from javascript?

1 Answers  


What is isnan in javascript?

1 Answers  


Categories