The console.log() function from console class of Node.js is used to display the messages on the console. It prints to stdout with newline.
console.log( [data][, ...] )
Parameter: This function contains multiple parameters which are to be printed.
Return type: The function returns the passed parameters.
Below program demonstrates the working of console.log() function:
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.