Skip to content

Commit 4b88aa1

Browse files
author
Yuri Brunetto
committed
complete wesbos#9
1 parent cb30176 commit 4b88aa1

1 file changed

Lines changed: 39 additions & 5 deletions

File tree

09 - Dev Tools Domination/index-START.html

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,62 @@
1818
}
1919

2020
// Regular
21+
console.log('hello!')
2122

2223
// Interpolated
24+
console.log('hello, I am a %s string!', 'poop')
2325

2426
// Styled
27+
console.log('%c I am some great text', 'font-size: 23px; color:#bada55;')
2528

2629
// warning!
30+
console.warn('OHH NOO')
2731

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

3035
// Info
36+
console.info('Crocodiles are homos')
3137

3238
// Testing
39+
console.assert(1 === 2, 'that is wrong')
3340

34-
// clearing
41+
// Clearing
42+
// console.clear()
3543

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

3848
// Grouping together
39-
40-
// counting
41-
42-
// timing
49+
dogs.forEach(dog => {
50+
console.group(`${dog.name}`)
51+
console.log(`This is ${dog.name}`)
52+
console.log(`${dog.name} is ${dog.age} years old`)
53+
54+
console.groupEnd(`${dog.name}`)
55+
})
56+
57+
// Counting
58+
console.count('Wes')
59+
console.count('Yuri')
60+
console.count('Yuri')
61+
console.count('Yuri')
62+
console.count('Wes')
63+
console.count('Wes')
64+
65+
// Timing
66+
console.clear()
67+
console.time('fetching data')
68+
fetch('https://api.github.com/users/YuriBrunetto')
69+
.then(data => data.json())
70+
.then(data => {
71+
console.timeEnd('fetching data')
72+
console.log(data)
73+
})
74+
75+
// Table
76+
console.table(dogs)
4377

4478
</script>
4579
</body>

0 commit comments

Comments
 (0)