Answers for "console.log syntax"

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
4

how to log something in the console. javascript

console.log('https://discord.gg/5yjWgMS');
Posted by: Guest on June-15-2020
0

console.log

console.log("Hello, world.");
// Hello, world.

let num = 5;
console.log(num);
// 5
Posted by: Guest on August-28-2020
0

console.log

// console.log("") is usefull for a lot of things

const myNumberOne = 69;
const myNumberTwo = 420;

console.log(myNumberOne + myNumberTwo);

// Example 2

let x = 4;
let y = 2;

console.log(`The difference between x and y is ${x - y}!`)
Posted by: Guest on August-02-2021
0

console.log

var players = ['Jim', 'Shawna', 'Andrew', 'Lora', 'Aimee', 'Nick'];
console.log(players);
Posted by: Guest on September-08-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language