1Promise.reject(newError('Promise Test error')).catch(console.error); 2 3try{ 4thrownewError('try-catch test error'); 5}catch(err){ 6console.error(err); 7} 8 9asyncfunctiontestAsync(){10thrownewError('Async test error');11}1213testAsync().catch(console.error);