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
1

console.log

console.log('zama')
Posted by: Guest on October-18-2021
3

console.log

console.log("dale")
Posted by: Guest on May-13-2020
12

Console.log

//Console.log is a way to send a message to the console.
//by typing console.log("") then putting text inside the quotation marks.

Console.log("Hello World!")

//pr of your using a varible you don't use the quotation marks.

var Varible = "Hello World!"
Console.log(Varible)

//You can use console.log for many uses like sending info about Errors.
Posted by: Guest on February-28-2021
0

console.log

console.log(10); // Integer
console.log(true); // Boolean
console.log('String'); // String
Posted by: Guest on July-18-2021
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("");
Posted by: Guest on April-07-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