Recent | Popular
#javascript #errors #howto
try { let hello = prompt("Type hello"); if (hello !== 'hello'){ throw new Error("Oops, you didn't type hello"); } } catch(e) { alert(e.message); } finally { alert('thanks for playing!'); }
Wed Jan 01 2020 19:00:00 GMT+0000 (Coordinated Universal Time) https://codeburst.io/learn-how-to-handle-javascript-errors-with-try-throw-catch-finally-83b4f9ef8c6f