Console.log is used to log an output message to the console. Note: This feature is available in Web Workers.
Console.warn() is used to output a warning message to the console. By default, the warning message will be highlighted with yellow color.
Console.info is used to log an information message to the console. In Firefox, a small “i” icon is displayed next to these items in the Web console’s log.
Console.table is used to log an array or an object as a table to the console.
This function takes one mandatory argument
data, which must be an array or an object, and one additional optional parameter
data as a table. Each element in the array (or enumerable property if
data is an object) will be a row in the table.
console.clear() method clears the console if the console allows it. A graphical console, like those running on browsers, will allow it; a console displaying on the terminal, like the one running on Node, will not support it, and will have no effect (and no error).
I hope you guys find this tutorial helpful. If you do please share it with your friends and bookmark this site for more amazing tutorials. Thanks