how to use js console log

JavaScript
const varName = 'this variable';

console.log(varName);console.log('string');
Source

Also in JavaScript: