javascript log to console

JavaScript
console.log('What you want to log here.');const varName = 'this variable';

console.log(varName);console.log('message1' + ' - ' + 'message2')console.log('Hello World')console.log('this string will show on console') // this string will show on console

const strVar1 = 'fizz';
const strVar2 = 'buzz';

console.log('strVar1 is: ' + strVar1 + ' and strVar2 is: ' + strVar2) // strVar1 is: fizz and strVar2 is: buzz
console.log(420) // 420console.log("Hello World");
Source

Also in JavaScript: