Method description:
This method is the same as console.error(). If you look at the source code, you will know that console.error actually directly calls console.warn
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.
If there are no parameters, just print a newline character
Example:
Source code: