JavaScript Console Methods

You are Here:

JavaScript Console Methods

The following are the list of console methods available in JavaScript programming.

FunctionsExplanation
console.assert()Writes an error message to the console if the assertion is false. If the assertion is true, nothing happens.
console.clear()Clears the console and leaves a message "Console was cleared".
console.count()Records the number of times that this particular call to console.count() has been called.
console.error()Outputs an error message to the Web Console.
console.group()Starts a new inline group in the Web Console log.
console.groupCollapsed()Starts a new inline group in the Web Console log.
console.groupEnd()Ends a new inline group in the Web Console log.
console.info()Outputs an informational message to the Web Console.
console.log()Outputs a message to the web console.
console.table()Displays tabular data as a table.
console.time()Starts a timer in the console view.
console.timeEnd()Stops a timer that was previously started by calling console.time().
console.trace()Outputs a stack trace that show how the code ended up at a certain point.
console.warn()Outputs a warning message to the Web Console.

Reminder

Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in JavaScript.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author