Course · Section 16: Asynchronous JavaScript: Promises, Async/Await, and AJAX · Lecture 275: Error Handling With try...catch
Implement `safeParse(s)` returning the parsed JSON value, or `null` if `s` is not valid JSON.
+ 1 hidden test run on Submit.
try/catch around JSON.parse returns the parsed value or null for invalid JSON.
Run your code to see results.