Skip to content
This repository was archived by the owner on Feb 13, 2022. It is now read-only.

Commit 6b5d1ff

Browse files
committed
solution wesbos#9
1 parent e1fea60 commit 6b5d1ff

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

09 - Dev Tools Domination/index-START.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,60 @@
1818
}
1919

2020
// Regular
21+
console.log('test');
2122

2223
// Interpolated
24+
console.log('Hello i am a %s', 'test');
2325

2426
// Styled
27+
console.log('%cStyled test', 'font-size:18px; color:red;');
2528

2629
// warning!
30+
console.warn('Warning!');
2731

2832
// Error :|
33+
console.error('Error!');
2934

3035
// Info
36+
console.info('Info!');
3137

3238
// Testing
39+
console.assert(1 === 2, 'It\'s wrong!');
3340

3441
// clearing
42+
// console.clear();
3543

3644
// Viewing DOM Elements
45+
const p = document.querySelector('p');
46+
console.dir(p);
3747

3848
// Grouping together
49+
dogs.forEach(dog => {
50+
console.groupCollapsed(`${dog.name}`);
51+
console.log(`This is ${dog.name}`);
52+
console.log(`${dog.name} is ${dog.age * 7} dog years old`);
53+
console.groupEnd(`${dog.name}`);
54+
});
3955

4056
// counting
57+
console.count('test');
58+
console.count('test');
59+
console.count('test2');
60+
console.count('test');
61+
console.count('test');
62+
console.count('test2');
63+
console.count('test');
4164

4265
// timing
66+
console.time('fetching data');
67+
fetch('https://api.github.com/users/rustamyusupov')
68+
.then(data => data.json())
69+
.then(data => {
70+
console.timeEnd('fetching data');
71+
console.log(data);
72+
});
73+
74+
console.table(dogs);
4375

4476
</script>
4577
</body>

0 commit comments

Comments
 (0)