Q:

javascript console log

console.log(10);
console.log('You can also log numbers')
8
console.log('message1' + ' - ' + 'message2')
4
const varName = 'this variable';

console.log(varName);
8
console.log('What you want to log here.');
6
console.log('string');
8
console.log('I want to log this so I am logging this. Calm down and log.')
5
console.log("Hello World");
2
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
1
console.log("hello", value);
0

New to Communities?

Join the community