0Pricing
JavaScript Academy · Lesson

Beyond console.log

Use table, group, warn, error, and assert.

More Than Log

The console object offers many methods beyond console.log. Each communicates a different intent and can render output in useful ways.

console.log("plain message")
console.info("informational")

console.warn

console.warn emits a warning. In a browser it appears with a yellow highlight, signaling a non-fatal issue worth attention.

console.warn("This API is deprecated")

All lessons in this course

  1. Beyond console.log
  2. Setting Breakpoints
  3. Stepping Through Code
  4. Reading Stack Traces
← Back to JavaScript Academy