What is the use of console.log?
console.log
Please explain how to use it in JavaScript, with a code example.
Apart from the usages mentioned above, console.log can also print to the terminal in node.js. A server created with express (for eg.) can use console.log to write to the output logger file.
node.js