util
try {
// Code that may throw an error
} catch (error) {
// Error handling code
}const obj = { a: 1, b: 2, c: 3 };
for (const key in obj) {
console.log(`${key}: ${obj[key]}`);
}const numbers = [1, 2, 3, 4, 5];
const sum = numbers.reduce((total, value) => total + value, 0);const numStr = "123";
const num = parseInt(numStr);