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');
javascript log to console
const varName = 'this variable';
console.log(varName);
javascript console.log
console.log('I want to log this so I am logging this. Calm down and log.')
js log to console
console.log('this string will show on console') // this string will show on console
const strVar1 = 'fizz';
const strVar2 = 'buzz';
console.log('strVar1 is: ' + strVar1 + ' and strVar2 is: ' + strVar2) // strVar1 is: fizz and strVar2 is: buzz
console.log(420) // 420
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