The console has more methods than just log():
console.error("Something failed") // Red text
console.warn("Be careful") // Yellow text
console.table([{a: 1}, {a: 2}]) // Table format
Use console.error() for errors and console.warn() for warnings. They stand out visually in the console. console.table() displays arrays of objects in a readable table format, which helps when debugging data.