Answers for "console log"

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
18

console.log javascript

console.log(10);
console.log('You can also log numbers')
Posted by: Guest on May-06-2020
5

javascript log to console

const varName = 'this variable';

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

how to log to the console

console.log("something");
// you can just write (log) in vs code and press enter it will automaticly write (console.log())
Posted by: Guest on May-21-2021
3

how to print console in javascript

console.log("message here")
Posted by: Guest on May-22-2020
0

console log

//how to see js output in browser console
//string 
console.log("hello"); // hello 

//number 
console.log(125); //125

//variable 
let val = "Hi! I am a shahjalal";
console.log(val) // Hi! I am shahjalal
Posted by: Guest on June-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language