Is it possible to use multiple catch in JS(ES5 or ES6) like I describe below (it is only example):
S(ES5 or ES6)
try { // just an error throw 1; } ca
No. That does not exist in JavaScript or EcmaScript.
You can accomplish the same thing with an if[...else if]...else inside of the catch.
if[...else if]...else
catch
There are some non-standard implementations (and are not on any standard track) that do have it according to MDN.