Projects > JS Console
June 09, 2021 | Vanilla JS
Day 9 Challenge of 30 day JS, implementing JS Console.
console.log("You are %s", 'great!');
console.log('%c how are you doing', 'color: green; font-size: 20px;');
console.assert(Condition, console when is not true);
console.dir(document.querySelector('p'));
console.group('name of group');
// All the console messages
console.groupEnd('name of group')
console.count('variable');
// variable: count
console.time('name of measurement');
// All the operation
console.timeEnd('name of measurement')
// name of measurement : time in ms
console.clear();
console.info('info')
console.warn('warning');
console.error('error');
console.table([{}, {}]);