Course · Section 16: Asynchronous JavaScript: Promises, Async/Await, and AJAX · Lecture 275: Error Handling With try...catch
Implement `safeDiv(a, b)` that throws when `b` is `0`, catches it, and returns `null`; otherwise returns `a / b`.
+ 1 hidden test run on Submit.
The try/catch converts the zero-divisor error into a null result.
Run your code to see results.