From 74e1527c3f11707ed2d192428939835be1460f5c Mon Sep 17 00:00:00 2001 From: ASAP Date: Fri, 3 Nov 2017 17:21:56 -0400 Subject: [PATCH] Day 09 - Complete --- 09 - Dev Tools Domination/index-START.html | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/09 - Dev Tools Domination/index-START.html b/09 - Dev Tools Domination/index-START.html index 196fffd719..dd675283de 100644 --- a/09 - Dev Tools Domination/index-START.html +++ b/09 - Dev Tools Domination/index-START.html @@ -18,28 +18,61 @@ } // Regular + console.log('Hey'); // Interpolated + console.log('Hey %s', '💩'); // Styled + console.log('%c Hey', 'font-size: 50px'); // warning! + console.warn('whoops'); // Error :| + console.error('oh no!'); // Info + console.info('did you know you can do this stuff in the console?'); // Testing + console.assert(1 === 2, 'That is not true'); // clearing + console.clear(); // Viewing DOM Elements + console.dir(document.querySelector('p')); // Grouping together + dogs.forEach(dog => { + console.groupCollapsed(`${dog.name}`); + console.log(`this is ${dog.name}`); + console.log(`${dog.name} is ${dog.age} years old`); + console.log(`${dog.name} is ${dog.age * 7} in dog years`); + console.groupEnd(`${dog.name}`); + }); // counting + console.count('Boogers'); + console.count('Boogers'); + console.count('Boogers'); + console.count('Boogers'); + console.count('Boogers'); + console.count('Boogers'); // timing + console.time('fetching data'); + fetch('https://api.github.com/users/asap') + .then(data => data.json()) + .then(data => { + console.timeEnd('fetching data'); + console.log(data); + }); + + + // table + console.table(dogs);