The syntax of a catch statement to catch all the exception is given by code example Example: try catch error try { console.log('hello'); } catch (e){ }