console log variable javascript code example
Example 1: console.log javascript
console.log(10);
console.log('You can also log numbers')
Example 2: javascript log to console
const varName = 'this variable';
console.log(varName);
Example 3: javascript log to console
console.log('message1' + ' - ' + 'message2')
Example 4: console log javascript
console.log
Example 5: console log javascript
console.log("hello", value);
Example 6: how to put strings in console javascript
console.log("string");