which statement is used create custom error in Javascript
Answers
Answered by
0
Answer:
var=error .err
Explanation:
mark me as branliest
Answered by
0
Answer:
Throw statement
Explanation:
- You can construct a custom error with the throw statement.
- You can technically make an exception (throw an error). You may control programme flow and generate custom error messages by using throw combined with try and catch.
- To throw your own exception, all you have to do is :
(1) create a new instance of it (new AlsCustomException("Anything but zero..."))and then
(2) throw it with the throw keyword.
#SPJ2
Similar questions
Physics,
3 months ago
Accountancy,
3 months ago
Math,
6 months ago
Math,
6 months ago
Math,
10 months ago