how to print to console javascript
console.log("string")
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');
how to log something in the console. javascript
console.log('https://discord.gg/5yjWgMS');
console.log
console.log("Hello, world.");
// Hello, world.
let num = 5;
console.log(num);
// 5
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}!`)
console.log
var players = ['Jim', 'Shawna', 'Andrew', 'Lora', 'Aimee', 'Nick'];
console.log(players);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us