Answers for "console.log() in javascript"

20

how to print to console javascript

console.log("string")
Posted by: Guest on February-13-2020
5

console.log

console.log('Hello World');
console.error('This is an error');
console.warn('This is a warning');
console.dir(document);
console.log(document.URL);
console.table([{name: 'Anthony', email: 'test.com', age: 33}]);
console.clear();

console.group('Say Hello');
   console.log('Hello Anthony');
   console.log('Hello Sally');
   console.log('Hello Chris');
console.groupEnd('Say Hello'); 

console.time('For Loop');
for (var i = 0; i < 2000; i++) {
  console.log(i);
}
console.timeEnd('For Loop');
Posted by: Guest on June-29-2021
5

javascript log to console

const varName = 'this variable';

console.log(varName);
Posted by: Guest on February-20-2020
5

how to use js console log

console.log('string');
Posted by: Guest on February-21-2020
4

javascript console.log

console.log('I want to log this so I am logging this. Calm down and log.')
Posted by: Guest on April-14-2020
-1

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
Posted by: Guest on July-16-2020

Code answers related to "console.log() in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language