Node.js - Error Handling Patterns
What will be the output of this code?
class MyError extends Error { constructor(msg) { super(msg); this.name = 'MyError'; } } try { throw new MyError('Oops!'); } catch (e) { console.log(e.name + ': ' + e.message); }