how to console log a variable in javascript with string code example
Example 1: javascript log to console
const varName = 'this variable';
console.log(varName);
Example 2: print javascript variable in console
console.log(p);
Example 3: how to put strings in console javascript
console.log("string");