use console in javascript code example
Example 1: javascript log to console
const varName = 'this variable';
console.log(varName);
Example 2: javascript console
console.log('log-message'); // Outputs a normal information log to the console window
console.warn('warn-message'); // Outputs warning in the console window
console.error('error-message'); // Outputs error in the console window
console.table('table-message'); // Outputs a table of all the object properties