JS Built-ins
consolebeginner

console β€” error is a function

πŸ“– Usage Example
console.table([{ name: 'Ana', age: 30 }])
// displays a formatted table

console.table() renders arrays of objects as a formatted table for easy inspection.

console.error()

console.error is used to output error messages to the console. It works similarly to console.log.

Challenge: Verify that console.error is a function.

πŸ’‘ Hints (1)
  • β€’ console.error outputs to stderr in Node.js and the error level in browsers