method Console.log
Jump to headingConsole.log(message?: any,...optionalParams: any[],): void
Prints to stdout
with newline. Multiple arguments can be passed, with the
first used as the primary message and all additional used as substitution
values similar to printf(3)
(the arguments are all passed to util.format()
).
const count = 5;
console.log('count: %d', count);
// Prints: count: 5, to stdout
console.log('count:', count);
// Prints: count: 5, to stdout
See util.format()
for more information.
Parameters Jump to heading
optional
Jump to headingmessage: any
Jump to heading<span>...optionalParams</span>: any[]
Return Type Jump to heading
void