Please have a look at the following two pieces of code. The purpose is to do something (writing to the console) if the value of x is false. const x = false; try { if (!x) { throw new Error("x is false"); } } catch { console.log('x...

Markdown supported · ⌘↵ to post
No responses yet.