X Tutup
Skip to content

Commit 784fc36

Browse files
committed
finished Day 9
1 parent aa2592b commit 784fc36

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

09 - Dev Tools Domination/index-START.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
// Regular
2121

2222
// Interpolated
23+
console.log('Hello %s', '💩');
24+
console.log(`backticked: ${'💩'}`);
2325

2426
// Styled
2527

@@ -30,16 +32,33 @@
3032
// Info
3133

3234
// Testing
35+
const p = document.querySelector('p');
36+
console.assert(null == false, 'That is not true!');
3337

3438
// clearing
3539

3640
// Viewing DOM Elements
41+
console.log(p);
42+
console.dir(p);
3743

3844
// Grouping together
45+
dogs.forEach(dog => {
46+
console.group(`${dog.name}`);
47+
console.log(`${dog.name} is ${dog.age}`);
48+
console.log(`dog's name is ${dog.name}`);
49+
console.groupEnd(`${dog.name}`);
50+
});
3951

4052
// counting
4153

4254
// timing
55+
console.time('fetching data');
56+
fetch('https://api.github.com/users/epikkoder')
57+
.then(data => data.json())
58+
.then(data => {
59+
console.timeEnd('fetching data');
60+
console.log(data);
61+
})
4362

4463
</script>
4564
</body>

0 commit comments

Comments
 (0)
X Tutup