File tree Expand file tree Collapse file tree 2 files changed +28
-4
lines changed
09 - Dev Tools Domination Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 18
18
}
19
19
20
20
// Regular
21
+ console . log ( 'haha' )
21
22
22
23
// Interpolated
23
-
24
+ console . log ( 'hello %s' , 'shit' ) ;
25
+
24
26
// Styled
27
+ console . log ( '%c hello shit' , 'font-size: 20px;color: red' ) ;
25
28
26
29
// warning!
30
+ console . warn ( 'haha' )
27
31
28
32
// Error :|
33
+ console . error ( 'haha' )
29
34
30
35
// Info
31
-
36
+ console . info ( 'haha' )
32
37
// Testing
38
+ console . assert ( 1 === 2 , 'that\'s wrong' )
33
39
34
40
// clearing
41
+ // console.clear();
35
42
36
43
// Viewing DOM Elements
37
-
44
+ console . dir ( document . querySelector ( 'p' ) ) ;
38
45
// Grouping together
46
+ dogs . forEach ( dog => {
47
+ console . group ( `${ dog . name } ` )
48
+ console . log ( `this is ${ dog . name } ` )
49
+ console . log ( `I'm ${ dog . age } years old` )
50
+ console . groupEnd ( `${ dog . name } ` )
51
+ } )
39
52
40
53
// counting
54
+ console . count ( 'shit' )
55
+ console . count ( 'shit' )
56
+ console . count ( 'shit' )
57
+ console . count ( 'shit' )
41
58
42
59
// timing
60
+ console . time ( 'fetching' ) ;
61
+ fetch ( 'https://api.github.com/users/saury' )
62
+ . then ( data => data . json ( ) )
63
+ . then ( data => {
64
+ console . timeEnd ( 'fetching' ) ;
65
+ console . log ( data ) ;
66
+ } ) ;
43
67
44
68
</ script >
45
69
</ body >
Original file line number Diff line number Diff line change 12
12
6 . [x] ~~ Type Ahead~~
13
13
7 . [x] ~~ Array Cardio, Day 2~~
14
14
8 . [x] ~~ Fun with HTML5 Canvas~~
15
- 9 . [ ] Dev Tools Domination
15
+ 9 . [x] ~~ Dev Tools Domination~~
16
16
10 . [ ] Hold Shift and Check Checkboxes
17
17
11 . [ ] Custom Video Player
18
18
12 . [ ] Key Sequence Detection
You can’t perform that action at this time.
0 commit comments