output javascript to console code example
Example 1: javascript log to console
const varName = 'this variable';
console.log(varName);
Example 2: javascript print to console
console.log("To Print");
const varName = 'this variable';
console.log(varName);
console.log("To Print");