1console.log('Hello World');
2console.error('This is an error');
3console.warn('This is a warning');
4console.dir(document);
5console.log(document.URL);
6console.table([{name: 'Anthony', email: 'test.com', age: 33}]);
7console.clear();
8
9console.group('Say Hello');
10 console.log('Hello Anthony');
11 console.log('Hello Sally');
12 console.log('Hello Chris');
13console.groupEnd('Say Hello');
14
15console.time('For Loop');
16for (var i = 0; i < 2000; i++) {
17 console.log(i);
18}
19console.timeEnd('For Loop');
1//Console.log is a way to send a message to the console.
2//by typing console.log("") then putting text inside the quotation marks.
3
4Console.log("Hello World!")
5
6//pr of your using a varible you don't use the quotation marks.
7
8var Varible = "Hello World!"
9Console.log(Varible)
10
11//You can use console.log for many uses like sending info about Errors.
1console.log(10); // Integer
2console.log(true); // Boolean
3console.log('String'); // String
1console.log("Hello, world.");
2// Hello, world.
3
4let num = 5;
5console.log(num);
6// 5
7
1// console.log("") is usefull for a lot of things
2
3const myNumberOne = 69;
4const myNumberTwo = 420;
5
6console.log(myNumberOne + myNumberTwo);
7
8// Example 2
9
10let x = 4;
11let y = 2;
12
13console.log(`The difference between x and y is ${x - y}!`)
1var players = ['Jim', 'Shawna', 'Andrew', 'Lora', 'Aimee', 'Nick'];
2console.log(players);
3