News for hackers. Stuff that matters.
Re:A better way to handle errors in JavaScript by musicq on Tuesday October 31, 2023 @07:35AM (#38083209)
try/catch has no problem, but the premise is that you know there will be errors been thrown. Say a function `divide`, you can barely tell that whether it will throw errors or not without looking into the source code.

There are no comments on this comment yet.