Skip to content

Commit ca7fc18

Browse files
author
nrvarun
committed
Day 9 Completed
1 parent 0a6697d commit ca7fc18

File tree

1 file changed

+37
-4
lines changed

1 file changed

+37
-4
lines changed

09 - Dev Tools Domination/index-START.html

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,62 @@
1818
}
1919

2020
// Regular
21-
21+
console.log('Hello');
22+
2223
// Interpolated
23-
24+
console.log('Hello I am %s','')
25+
2426
// Styled
27+
console.log('%C This is styled','font-size: 2em, text-shadow: 1px 1px 2px grey, color: black');
2528

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

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

3035
// Info
36+
console.info('Hey there, just an info');
3137

3238
// Testing
3339

3440
// clearing
41+
console.clear();
3542

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

3848
// Grouping together
39-
49+
console.groupCollapsed('Marvel');
50+
console.log('Iron man');
51+
console.log('Captian America');
52+
console.log('Black Panther');
53+
console.groupEnd('Marvel');
54+
55+
console.groupCollapsed('DC');
56+
console.log('Batman');
57+
console.log('Superman');
58+
console.log('Wonder woman');
59+
console.groupEnd('DC');
60+
4061
// counting
62+
console.count('DC');
63+
console.count('DC');
64+
console.count('DC');
65+
console.count('DC');
66+
console.count('DC');
4167

4268
// timing
43-
69+
console.time('fetch data');
70+
fetch('https://api.github.com/users/nrvarun')
71+
.then( (res) => res.json())
72+
.then((res) => {
73+
console.log(res)
74+
console.timeEnd();
75+
});
76+
4477
</script>
4578
</body>
4679
</html>

0 commit comments

Comments
 (0)