Node.js console.assert() Method | It checks whether the value is true or not and print an error message, if provided and failed to assert the value. |
Node js console.clear() Method | The console.clear() will work differently across different operating systems and terminal types. |
Node.js console.count() Method | This is used to count label passed to it as a parameter, by maintaining an internal counter for that specific label. |
Node.js console.countReset() Method | This is used to reset the count for the specific label passed to it as a parameter. |
Node.js console.debug() Method | This is used to print messages to stdout in a newline. Similar to console.log() method. |
Node.js console.dir() Method | This is used to get the list of object properties of a specified object. |
Node.js console.error() Function | This is used to display an error messages on the console. It prints to stderr with newline. |
Node.js console.info() Method | This is used to print messages to stdout in a newline. It is similar to console.log() method. |
Node.js console.timeLog() Method | This is used to display the time for each execution. This function is proved to be effective when used in a loop. |
Node.js console.time() Method | It is used to starts a timer that is used to compute the time taken by a piece of code or function. |
Node.js console.table() Method | It is used to print the table constructed from it’s parameters into the console. |
Node.js new Console() Method | This is inbuilt application programming interface of the ‘console’ module which creates a new Console with single or multiple writable streams |
Node.js console.profile() Method | The console.profile() (Added in v8.0.0) method is an inbuilt application programming interface of the ‘console‘ module which doesn’t display anything unless used in the inspector. |
Node.js console.profileEnd() Method | The console.profileEnd() (Added in v8.0.0) method is an inbuilt application programming interface of the ‘console’ module which does not display anything unless used in the inspector. |
Node.js console.timeStamp() Method | This is an inbuilt application programming interface of the ‘console‘ module which does not display anything unless used in the inspector. |
Node.js console.timeEnd() Method | This method stops a timer that was previously started by using console.time() method and display the result using stdout. |
Node.js console.trace() Method | This is used to print stack trace messages to stderr in a newline. Similar to console.error() method. |
Node.js console.warn() Function | This is used to display the warning messages on the console. It prints to stderr with newline. |