Home > Article > Web Front-end > Instructions for using the console.log method in node.js_node.js
Method description:
Print characters to the standard output stream, terminated by a newline character.
Grammar:
Receive parameters:
console.log accepts several parameters. If there is only one parameter, the string form of this parameter will be output.
If there are multiple parameters, it will be output in a format similar to the C language printf() command.
With no arguments, just print a newline character.
Example:
Source code: