Computer Science, asked by singhgolu1013, 6 months ago

which statement is used create custom error in Javascript​

Answers

Answered by avi41412
0

Answer:

var=error .err

Explanation:

mark me as branliest

Answered by ayush7652051895sl
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