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
- Beyond console.log
- Setting Breakpoints
- Stepping Through Code
- Reading Stack Traces