This article describes how to use the console.info method in node. js. This article describes the console.info method, syntax, receiving parameters, use instances, and implementation source code. For more information, see
Method description:
This method is the same as console. log. From the source code, it directly calls console. log.
Syntax:
The Code is as follows:
Console.info ([data], [...])
Receiving parameters:
Multiple parameters are accepted. If there is only one parameter, the string format of this parameter is output.
If multiple parameters exist, they are output in a format similar to the C language printf () command.
If no parameter exists, only one line break is printed.
Example:
The Code is as follows:
Var count = 1234;
Console.info ('count: % d', count );
Source code:
The Code is as follows:
Lele.prototype.info = Console. prototype. log;