js log to console code example

Example 1: console.log javascript

console.log(10);
console.log('You can also log numbers')

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 console log

console.log('string');

Example 5: how to log something in the console. javascript

console.log('https://discord.gg/5yjWgMS');

Example 6: js log to console

console.log('this string will show on console') // this string will show on console

const strVar1 = 'fizz';
const strVar2 = 'buzz';

console.log('strVar1 is: ' + strVar1 + ' and strVar2 is: ' + strVar2) // strVar1 is: fizz and strVar2 is: buzz
console.log(420) // 420

Tags:

Misc Example