Lesson 33 of 35 · +130 xp
Try / Catch
Catch runtime errors.
Explained simply
Your task
Write: try { risky(); } catch (e) { console.error(e); }
Click 'Run code' to execute your code in a real sandbox.
Lesson 33 of 35 · +130 xp
Catch runtime errors.
Write: try { risky(); } catch (e) { console.error(e); }
Click 'Run code' to execute your code in a real sandbox.