Skip to content

Commit d33c07e

Browse files
committed
fixed the explainations of console
1 parent fe7ed0b commit d33c07e

File tree

1 file changed

+81
-3
lines changed

1 file changed

+81
-3
lines changed

Sprint-1/4-stretch-explore/objects.md

Lines changed: 81 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,93 @@ In this activity, we'll explore some additional concepts that you'll encounter i
55
Open the Chrome devtools Console, type in `console.log` and then hit enter
66

77
What output do you get?
8-
function defination
8+
ƒ log() { [native code] }
9+
10+
this tells that function’s name is log, in this case - console.log
11+
912

1013

1114
Now enter just `console` in the Console, what output do you get back?
1215
This prints the entire console object with all its methods, like log, warn, error, etc.
16+
console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
17+
assert
18+
:
19+
ƒ assert()
20+
clear
21+
:
22+
ƒ clear()
23+
context
24+
:
25+
ƒ context()
26+
count
27+
:
28+
ƒ count()
29+
countReset
30+
:
31+
ƒ countReset()
32+
createTask
33+
:
34+
ƒ createTask()
35+
debug
36+
:
37+
ƒ debug()
38+
dir
39+
:
40+
ƒ dir()
41+
dirxml
42+
:
43+
ƒ dirxml()
44+
error
45+
:
46+
ƒ error()
47+
group
48+
:
49+
ƒ group()
50+
groupCollapsed
51+
:
52+
ƒ groupCollapsed()
53+
groupEnd
54+
:
55+
ƒ groupEnd()
56+
info
57+
:
58+
ƒ info()
59+
log
60+
:
61+
ƒ log()
62+
memory
63+
:
64+
MemoryInfo {totalJSHeapSize: 54442408, usedJSHeapSize: 52085668, jsHeapSizeLimit: 4294967296}
65+
profile
66+
:
67+
ƒ profile()
68+
profileEnd
69+
:
70+
ƒ profileEnd()
71+
table
72+
:
73+
ƒ table()
74+
time
75+
:
76+
ƒ time()
77+
timeEnd
78+
:
79+
ƒ timeEnd()
80+
timeLog
81+
:
82+
ƒ timeLog()
83+
timeStamp
84+
:
85+
ƒ timeStamp()
86+
trace
87+
:
88+
ƒ trace()
89+
warn
90+
:
91+
ƒ warn()
1392

1493
Try also entering `typeof console`
15-
This prints the entire console object with all its methods, like log, warn, error, etc.
16-
94+
This prints 'Object'.
1795
Answer the following questions:
1896

1997
What does `console` store?

0 commit comments

Comments
 (0)