This repository was archived by the owner on Feb 13, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
09 - Dev Tools Domination Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1818 }
1919
2020 // Regular
21+ console . log ( 'test' ) ;
2122
2223 // Interpolated
24+ console . log ( 'Hello i am a %s' , 'test' ) ;
2325
2426 // Styled
27+ console . log ( '%cStyled test' , 'font-size:18px; color:red;' ) ;
2528
2629 // warning!
30+ console . warn ( 'Warning!' ) ;
2731
2832 // Error :|
33+ console . error ( 'Error!' ) ;
2934
3035 // Info
36+ console . info ( 'Info!' ) ;
3137
3238 // Testing
39+ console . assert ( 1 === 2 , 'It\'s wrong!' ) ;
3340
3441 // clearing
42+ // console.clear();
3543
3644 // Viewing DOM Elements
45+ const p = document . querySelector ( 'p' ) ;
46+ console . dir ( p ) ;
3747
3848 // Grouping together
49+ dogs . forEach ( dog => {
50+ console . groupCollapsed ( `${ dog . name } ` ) ;
51+ console . log ( `This is ${ dog . name } ` ) ;
52+ console . log ( `${ dog . name } is ${ dog . age * 7 } dog years old` ) ;
53+ console . groupEnd ( `${ dog . name } ` ) ;
54+ } ) ;
3955
4056 // counting
57+ console . count ( 'test' ) ;
58+ console . count ( 'test' ) ;
59+ console . count ( 'test2' ) ;
60+ console . count ( 'test' ) ;
61+ console . count ( 'test' ) ;
62+ console . count ( 'test2' ) ;
63+ console . count ( 'test' ) ;
4164
4265 // timing
66+ console . time ( 'fetching data' ) ;
67+ fetch ( 'https://api.github.com/users/rustamyusupov' )
68+ . then ( data => data . json ( ) )
69+ . then ( data => {
70+ console . timeEnd ( 'fetching data' ) ;
71+ console . log ( data ) ;
72+ } ) ;
73+
74+ console . table ( dogs ) ;
4375
4476 </ script >
4577</ body >
You can’t perform that action at this time.
0 commit comments