nodejs console.log

JavaScript
console.log(10);
console.log('You can also log numbers')console.log('I want to log this so I am logging this. Calm down and log.')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 stderrconsole.log("hello world");
Source

Also in JavaScript: