To cite the MDN document you are attached to:
Note. This functionality is not part of the ECMAScript specification.
and
JavaScript 1.5, NES 6.0: Added multiple catch clauses (Netscape extension).
like this: No, this is not possible in Node.js. However, of course, you can use the following syntax as a workaround:
try { try_statements } catch (e) { if (e instanceof ...) catch_statements_1 else if (e instanceof ...) catch_statements_2 else throw e; } [finally { finally_statements }]
Bergi source share