Lesson 33 of 35 · +130 xp

Try / Catch

Catch runtime errors.

Explained simply

Your task

Write: try { risky(); } catch (e) { console.error(e); }

try-js.js
▶ Output (javascript)
Click 'Run code' to execute your code in a real sandbox.
← Back