Node.js - Error Handling Patterns
Consider this code:
What will be printed?
try {
JSON.parse('invalid');
console.log('Parsed');
} catch (err) {
console.log('Error:', err.name);
}What will be printed?
