node js printing
console.log('hello world');
// Prints: hello world, to stdout
console.log('hello %s', 'world');
// Prints: hello world, to stdout
console.error(new Error('Whoops, something bad happened'));
// Prints: [Error: Whoops, something bad happened], to stderr
const name = 'Will Robinson';
console.warn(`Danger ${name}! Danger!`);
// Prints: Danger Will Robinson! Danger!, to stderr
3.89
9
console.log([data][, ...])
Thank you!
9
0
4
5
print("hello world");
Thank you!
5
0
Are there any code examples left?
New code examples in category Javascript