File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
09 - Dev Tools Domination Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 2020 // Regular
2121
2222 // Interpolated
23+ console . log ( 'Hello %s' , '💩' ) ;
24+ console . log ( `backticked: ${ '💩' } ` ) ;
2325
2426 // Styled
2527
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 >
You can’t perform that action at this time.
0 commit comments