Answers for "node js printing"

0

print in node js

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
Posted by: Guest on August-10-2020
0

node js printing

console.log([data][, ...])
Posted by: Guest on January-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language