Booklet
Working with console
Working with console
console.log - It's just a log undefined We all know console.loa that outputs a message to the web console. Easy. Let's go on.
console.table - Did you know you can display tabular data as a table?
console.table(2) - And even like that. How cool is it!
console.error - A perfect way to output an error message to the console. Tip: use console.error to make this output red and distinguish it from other ones
console.warn - A perfect way to output a warning message to the console. Tip: use console.warn to make this output yellow and distinguish it from other ones
console.clear - Look, I have just cleaned up the warning I had before on the console!