Expert Developer JavaScript Question:
Download Job Interview Questions and Answers PDF
Which keywords are used to handle exceptions?
Answer:
Try… Catch-finally is used to handle exceptions in the JavaScript
JavaScript
Try{
Code
}
Catch(exp){
Code to throw an exception
}
Finally{
Code runs either it finishes successfully or after catch
}
JavaScript
Try{
Code
}
Catch(exp){
Code to throw an exception
}
Finally{
Code runs either it finishes successfully or after catch
}
Download Expert JavaScript Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
What are JavaScript Cookies? | What is unshift method in JavaScript? |