The Node.js console module provides a simple debugging console similar to JavaScript console mechanism provided by web browsers.
There are three console methods that are used to write any node.js stream:
console.log()
Open Node.js command prompt and run the following code:
console.error()
console.error(new Error('OOPs! This is a wrong method.'));
console.warn()
The console.warn() function is used to display warning message on console.
Trending Tutorials