shortcut to write console log in javascript code example
Example 1: how to print to console javascript
console.log("string")
Example 2: how to log to the console javascript
console.log('What you want to log here.');
Example 3: javascript log to console
const varName = 'this variable';
console.log(varName);
Example 4: javascript log to console
console.log('message1' + ' - ' + 'message2')