You are creating a page that uses JavaScript code.
You need to ensure that if a function named function1 throws a RangeError error, a function named function2 executes. For any other type of error, a function name function3 must execute.
Which JavaScript code should you use?
A.
B.
C.
D.