Console
Learn about the console module in Node.js.
We'll cover the following
Debugging made easy
In this lesson, we shall look at a few different functionalities that this module provides.
The console module that Node.js provides is similar to the JavaScript console that most browsers provide. In case you had not noticed, we were not importing the console
module before using console.log
. The reason we were not importing anything is that there is a global console
instance that is configured to write to process.stdout
and process.stderr
. Let’s look at some of the options that the global console
provides.
Get hands-on with 1400+ tech skills courses.